Android Support Libraryまとめ


1.
java.lang.IllegalStateException: View can not be anchored to the the parent CoordinatorLayout
                                                                        at android.support.design.widget.CoordinatorLayout$LayoutParams.resolveAnchorView(CoordinatorLayout.java:2526)
                                                                        at android.support.design.widget.CoordinatorLayout$LayoutParams.findAnchorView(CoordinatorLayout.java:2495)
                                                                        at android.support.design.widget.CoordinatorLayout.prepareChildren(CoordinatorLayout.java:623)
                                                                        at android.support.design.widget.CoordinatorLayout.onMeasure(CoordinatorLayout.java:674)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:1075)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5465)
                                                                        at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
                                                                        at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5465)
                                                                        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
                                                                        at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
                                                                        at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5465)
                                                                        at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5465)
                                                                        at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1436)
                                                                        at android.widget.LinearLayout.measureVertical(LinearLayout.java:722)
                                                                        at android.widget.LinearLayout.onMeasure(LinearLayout.java:613)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5465)
                                                                        at android.widget.FrameLayout.onMeasure(FrameLayout.java:430)
                                                                        at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2560)
                                                                        at android.view.View.measure(View.java:17448)
                                                                        at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2031)
                                                                        at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1189)
                                                                        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1402)
                                                                        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1077)
                                                                        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5884)
                                                                        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
                                                                        at android.view.Choreographer.doCallbacks(Choreographer.java:580)
                                                                        at android.view.Choreographer.doFrame(Choreographer.java:550)
                                                                        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
                                                                        at android.os.Handler.handleCallback(Handler.java:739)
                                                                        at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                        at android.os.Looper.loop(Looper.java:135)
                                                                        at android.app.ActivityThread.main(ActivityThread.java:5310)
                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                        at java.lang.reflect.Method.invoke(Method.java:372)
                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)

Support Libraryバージョン:23.2.0 compileSdkValerssion:23 Build Tools:23.0.3
  <android.support.design.widget.FloatingActionButton
            android:id="@+id/fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="@dimen/fab_margin"
            android:src="@drawable/ic_favorite_24dp"
            app:borderWidth="0dp"
            app:layout_anchor="@id/coordinator_root"
            app:layout_anchorGravity="end|bottom" />

理由:
23.2.0から、One of your views is anchored to its parent Coordinator Layout.However, starting at v.23.2.0, this is no longer allowed.
だから、コードを修正して、coordinatorをfabのanchorとして使用しないでください.
app:layout_anchor="@id/coordinator_root"