快速滚动的自定义拇指 [英] fast scroll custom thumb

查看:176
本文介绍了快速滚动的自定义拇指的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置自定义的拇指快速滚动的列表视图。

how can i set custom thumb for fast scroll in listview.

推荐答案

您可以设置成style.xml

you can set that into the style.xml

<style name="Theme_app" parent="@android:style/Theme.Holo.Light">
    <item name="android:fastScrollThumbDrawable">@drawable/fastscroll_thumb_holo</item>

 </style>

比图像创建可绘制一个XML

than create an xml in Drawable for the image

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_pressed="true" android:drawable="@drawable/fastscroll_thumb_pressed_holo" />
    <item android:drawable="@drawable/fastscroll_thumb_default_holo" />
</selector>

这篇关于快速滚动的自定义拇指的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆