Android:如何在listview中更改draghandle?
Android:如何在listview中更改draghandle?,android,android-listview,Android,Android Listview,android:fastScrollEnabled=“true” 这工作的很好,但拖动手柄,这似乎是非常丑陋的,我需要改变它 他们有没有直接的方法把拖拉机的图像改成我想要的 如果没有,应该怎么做 注意:我不是要代码,请引导我完成它。谢谢。它只是一个图像,因此您可以轻松更改它 在应用程序主题中添加类似的内容: <item name="android:fastScrollThumbDrawable">@drawable/apptheme_fastscroll_thumb_holo<
android:fastScrollEnabled=“true”
这工作的很好,但拖动手柄,这似乎是非常丑陋的,我需要改变它
他们有没有直接的方法把拖拉机的图像改成我想要的
如果没有,应该怎么做
注意:我不是要代码,请引导我完成它。谢谢。它只是一个图像,因此您可以轻松更改它 在应用程序主题中添加类似的内容:
<item name="android:fastScrollThumbDrawable">@drawable/apptheme_fastscroll_thumb_holo</item>
@drawable/apptheme\u fastscroll\u thumb\u holo
这是指具有两种状态的可拉拔电缆:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/apptheme_fastscroll_thumb_pressed_holo" />
<item android:drawable="@drawable/apptheme_fastscroll_thumb_default_holo" />
</selector>
您可以在这里看到一个示例,说明drawable应该是什么:(在列表末尾启用Fast Scrool)。看起来是这样的:
thanx,我只能在3分钟后接受你的回答……我给了+1的小回答