Last Item in recyclerview is cut off

前端 未结 5 1605
抹茶落季
抹茶落季 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:50

    Your RecyclerView is not properly constrained. You can either use 0dp (MATCH_CONSTRAINT) for the height and use all available space:

    
    

    or if you want to keep it as wrap_content you will need to set app:layout_constrainedHeight="true" attribute to enforce the constraints:

    
    

提交回复
热议问题