android - 在 RecyclerView 中设置 contentInset

标签 android scrollview android-recyclerview

我正在尝试在 iOS 中实现 RecyclerView,例如 UICollectionView。 我想在回收站 View 的底部设置一个 contentInset 但我找不到执行此操作的选项。

Android 有类似的东西吗?

最佳答案

解决方法很简单:

 <android.support.v7.widget.RecyclerView
   android:paddingBottom="30dp"
   android:clipToPadding="false"
   android:layout_width="match_parent"
   android:layout_height="match_parent" />

关于android - 在 RecyclerView 中设置 contentInset,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29163419/

相关文章:

Java - 知道给定字符串的星期几

android - 为什么我无法构建 Android 源代码?

android - ScrollView 和 LinearLayout 的困难

android - 处理 R 到 L 语言的水平 ScrollView

c# - scrollviewer 只缩放一个元素

java - 监听集合中的多个文档并更新recyclerview

java - 解析 JSON 数据时不显示任何内容

android - 在 ActionBar 中将数字输入类型设置为 SearchView

android - Firebase endAt() 不适用于日期字符串?

android - recyclerview 没有附加适配器;跳过布局