【发布时间】:2012-02-29 14:17:44
【问题描述】:
这是我的列表视图
<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>
这是 listviewfastscrollstyle 样式文件
<style>
<item name="android:fastScrollTrackDrawable">@drawable/listselector</item>
<item name="android:fastScrollThumbDrawable">@drawable/listselector</item>
</style>
这是列表选择器文件
<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>
但列表视图快速滚动条仍然没有得到自定义。
【问题讨论】:
-
不要对您的 ListView 做任何事情。创建样式,将其应用到 Manifest 中的 Application 标签。
-
标签: android listview fastscroll