相关疑难解决方法(0)

android listview快速滚动定制问题

这是我的列表视图

<ListView android:layout_width="match_parent"
            android:layout_height="match_parent" android:id="@+id/ListView"
            android:fastScrollEnabled="true" android:divider="@null"
            style="@drawable/listviewfastscrollstyle"
            ></ListView>
Run Code Online (Sandbox Code Playgroud)

这是listviewfastscrollstyle样式文件

<style> 
<item name="android:fastScrollTrackDrawable">@drawable/listselector</item> 
<item name="android:fastScrollThumbDrawable">@drawable/listselector</item> 
</style>
Run Code Online (Sandbox Code Playgroud)

这是listselector文件

<selector xmlns:android="http://schemas.android.com/apk/res/android">
 <item android:state_pressed="true" android:drawable="@drawable/channelarrows_down" /> 
 <item android:drawable="@drawable/minimize" /> 
 </selector>
Run Code Online (Sandbox Code Playgroud)

但仍然列表视图快速滚动条没有得到定制.

android listview fastscroll

6
推荐指数
2
解决办法
9396
查看次数

标签 统计

android ×1

fastscroll ×1

listview ×1