
我有一个具有全息外观的应用程序.
对于蜂窝前装置,我只是向后推出了Holo主题的一些元素.
使用主题,样式和attrs可以使用CheckBox,Radiobutton ……
我想做什么
我使用ListView来显示很多项目.我想在我的ListView上启用快速滚动,我希望它具有全息外观.
我的问题
我有一些困难将快速滚动Drawable集成到我的应用主题中.
到目前为止我尝试过的
>寻找执行此 *** 作的库. HoloEverywhere是
有希望,但没有处理.
>试图自己做:
我刚刚添加了那些drawable:
然后还添加了这个drawable:
<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>
在我的attrs.xml中添加了这个:
<attr name="fastScrollThumbDrawable" format="reference" />
我在themes.xml中添加了这个:
<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快速滚动看旧设备上所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)