Bottom Align Floating Action Button

前端 未结 6 1498
梦如初夏
梦如初夏 2020-12-05 01:30

I want to align to bottom right my FAB.

  1. I tried with android:gravity=\"bottom|right\"
  2. When I try android:layout_alignParentBottom=\
6条回答
  •  不知归路
    2020-12-05 02:29

    For RelativeLayout:

    
    

    For CoordinatorLayout, you should use android:layout_gravity="end|bottom"


    For ConstraintLayout:

    
    

    See this answer for more information.

提交回复
热议问题