快速滚动的自定义拇指

编程入门 行业动态 更新时间:2024-10-11 05:30:33
本文介绍了快速滚动的自定义拇指的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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="schemas.android/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/fastscroll_thumb_pressed_holo" /> <item android:drawable="@drawable/fastscroll_thumb_default_holo" /> </selector>

更多推荐

快速滚动的自定义拇指

本文发布于:2023-11-26 08:50:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1633441.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   拇指   快速

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!