大佬教程收集整理的这篇文章主要介绍了android – Holo快速滚动看旧设备上,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
对于蜂窝前装置,我只是向后推出了Holo主题的一些元素.
使用主题,样式和attrs可以使用checkBox,RadioButton ……
我想做什么
我使用ListView来显示很多项目.我想在我的ListView上启用快速滚动,我希望它具有全息外观.
我的问题
我有一些困难将快速滚动Drawable集成到我的应用主题中.
到目前为止我尝试过的
>寻找执行此操作的库. HoloEverywhere是
有希望,但没有处理.
>试图自己做:
我刚刚添加了那些drawable:
然后还添加了这个drawable:
<SELEctor xmlns:android="http://scheR_720_11845@as.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>
<attr name="fastScrollThumbDrawable" format="reference" />
<style name="myTheme"> <item name="fastScrollThumbDrawable">@drawable/fastscroll_thumb_holo</item> </style>
这个主题在Manifest.xml中正确设置为我的应用程序:
android:theme="@style/myTheme"
请记住android:fastScrollThumbDrawable doesn’t exist pre-honeycomb.
我希望你能帮我解决这个问题.
以上是大佬教程为你收集整理的android – Holo快速滚动看旧设备上全部内容,希望文章能够帮你解决android – Holo快速滚动看旧设备上所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。