RecyclerView 最后一项加边距

171 阅读1分钟

RecyclerView 最后一项加边距,但又不想做剪裁,可以使用 android:clipToPadding="false" 配合 android:paddingBottom="80dp" 实现,效果非常好

<androidx.recyclerview.widget.RecyclerView
   android:layout_width="match_parent"
   android:layout_height="match_parent"                    
   android:paddingBottom="80dp"
   android:clipToPadding="false"
/>