gpt4 book ai didi

Android ListView 滚动没有动量

转载 作者:可可西里 更新时间:2023-11-01 11:43:04 24 4
gpt4 key购买 nike

Activity 中的 ListView 没有滚动动量 - 一旦我抬起手指,滚动就会停止。我在层次结构中有另一个 ScrollView,但它的 visibility 设置为 gone

<ListView
android:id="@+id/eventsListView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/contentViewSearchBar"
android:divider="@android:color/transparent"
android:dividerHeight="10.0sp"
android:listSelector="@color/transparent" />

View hierarchy

有什么想法吗?

最佳答案

您是否在您的 Activity 和/或 Fragment 中覆盖了 onTouchEvent()?如果是,请检查此条件 case MotionEvent.ACTION_UP。这是检测到您的“手指向上”的地方。

关于Android ListView 滚动没有动量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35408848/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com