android - Float action button anchor with include layout -
do know if possible use id views included in layout anchor of fab ? example :
<include layout="@layout/content_main" /> <android.support.design.widget.floatingactionbutton android:id="@+id/fab" android:layout_width="wrap_content" android:layout_height="wrap_content" app:layout_anchor="@id/map" app:layout_anchorgravity="bottom|right|end" android:layout_margin="@dimen/fab_margin" android:src="@android:drawable/ic_menu_add" />
"@id/map" inside inclued layout content_main.
with code follow error:
error:(30, 28) no resource found matches given name (at 'layout_anchor' value '@id/map').
for information i'm use include trying reduce main layout size.
it seem "@id/map" not visible fab anchor. perhaps doing wrong.
i guess missing tag id android:id="@+id/map"
open @layout/content_main
floating action buttons used special type of promoted action. distinguished circled icon floating above ui , have special motion behaviors related morphing, launching, , transferring anchor point.
error:(30, 28) no resource found matches given name (at 'layout_anchor' value '@id/map').
Comments
Post a Comment