android - FAB layout_anchor crash with a exist resource -


today, making login activity used fab login button. codes right. when arranging layout file, used these codes:

android:id="@+id/floatingactionbutton3" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:layout_margintop="20dp" android:clickable="true" app:elevation="15dp" app:layout_anchor="@id/etext1" app:layout_anchorgravity="end" app:fabsize="normal" app:srccompat="@drawable/ic_arrow_forward" 

android studio didn't report bugs when typed these codes. when going run debug app on phone, crashed mistake:

error:(16, 28) no resource found matches given name (at 'layout_anchor' value '@id/etext1'). 

and noticed mistake in render errors:

couldn't resolve resource @id/visible 

i hope can me solve problem. appreciate if can give me solution. anyway!

make sure have view "etext1" id , make sure etext1 above fab in xml file. better put whole xml file.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -