我在activity
的fragment
中有listview
。所有基本功能都运行良好。但我最近观察到的奇怪行为。
滚动速度非常快,只要listview
到达任一端,它就会自动开始向相反方向滚动。在滚动缓慢或滚动快速滚动旋钮时,不会看到此行为。
没有错误或异常,所以我无法找出这种行为的原因。Listview在到达结尾后反向滚动?
任何帮助将非常感激。
这里是我的listview
的xml
定义:
<ListView
android:id="@id/android:list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:fastScrollEnabled="true"
android:fadeScrollbars="true"
android:dividerHeight="0dp"
android:divider="@null" >
</ListView>
在代码中的implementaion是很基本的,所以我不会在这里张贴,但还是老样子,如果它需要的话,我会后这一点。
尝试更改列表视图的高度以匹配父级,并告诉问题是否仍然存在 –