An Anchor May Not Be Changed After Coordinatorlayout Measurement Begins Before Layout Is Complete?
Hello friends please help me whats problem here its work fine on sdk 23 now I upgrade my sdk from 23 to 28 its giving this error. Its mostly error in anchor tag I don't know how fi
Solution 1:
In FloatingActionButton tag don't use layout_anchor to CoordinatorLayout. Use the below child of CoordinatorLayout.
Please check this.It is working for me
<android.support.design.widget.FloatingActionButton
android:src="@drawable/ic_add_white_24dp"
android:id="@+id/addToDoItemFAB"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="16dp"
app:layout_anchor="@id/toDoEmptyView"
app:layout_anchorGravity="bottom|right|end"
/>
Post a Comment for "An Anchor May Not Be Changed After Coordinatorlayout Measurement Begins Before Layout Is Complete?"