Android - Movable/Draggable Floating Action Button (FAB)

后端 未结 9 1647
温柔的废话
温柔的废话 2020-12-28 14:47

I am using a FloatingActionButton in my app. Occasionally, it overlaps essential content, so I would like to make it so the user can drag the FAB out of the way.

No

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 15:46

    actually you can just use android.support.design.widget.CoordinatorLayout instead of Relative layout or any other layout and this will work(moving FAB)

提交回复
热议问题