Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用我创建的 customListAdapter 的 listView。当用户滚动列表时,他/她会像往常一样在右侧看到滚动指示器。
但是,我想在右侧显示一个可拖动的轨道按钮,以便用户能够按住该按钮并快速滚动列表。
我怎样才能做到这一点?
我相信 xml 值fastScrollEnabled和可选fastScrollAlwaysVisible的是您要为 ListView 设置的值
fastScrollEnabled
fastScrollAlwaysVisible
android:fastScrollEnabled="true" android:fastScrollAlwaysVisible="true"
fastScrollEnabled启用滚动条的拖动。