【发布时间】:2020-10-07 12:06:07
【问题描述】:
在我的程序中,底部滚动效果看起来很糟糕,所以我只想在顶部显示过度滚动效果。
这是包含 recyclerview 的 xml 文件。
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clipToPadding="false"
android:clipChildren="false">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/day_events_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
</RelativeLayout>
当我设置属性android:overScrollMode="never" 时,顶部和底部滚动效果都没有显示。
谁能解决这个问题?
【问题讨论】:
-
@Dmitriy,但是如何阻止呢?
标签: android