Last Item in recyclerview is cut off

前端 未结 5 1619
抹茶落季
抹茶落季 2020-12-31 06:03

I am using recyclerview to display a list of items and constraint layout is the parent view. The layout is displayed below:

  

        
5条回答
  •  长情又很酷
    2020-12-31 06:28

    1)The View of Recyclerview must be properly constrained. (by ConstraintLayout or any other layout parameters).

    2)The Last item occupies the space inside the RecyclerView, hence use Padding. (e.g android:paddingBottom="50dp")

    3)Use android:clipToPadding="false" in XML.

提交回复
热议问题