Floating Action Button blocking other components

后端 未结 6 2314
粉色の甜心
粉色の甜心 2021-02-19 01:41

The new Material Design of Google recommends to use floating action buttons to draw attention to the user for the main action on that screen. There are quite a lot of examples o

6条回答
  •  离开以前
    2021-02-19 02:38

    Add bottom padding to the RecyclerView. Also, don't use android:layout_height="wrap_content" unless you've overridden onMeasurein the layout manager. Current layout managers do not yet support wrap content.

    Add the attribute android:clipToPadding="false" to achieve the goal. As mentioned in comments.

提交回复
热议问题