state_activated pre蜂窝 [英] state_activated pre honeycomb
本文介绍了state_activated pre蜂窝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用
<item android:drawable="@drawable/ic_launcher" android:state_activated="true"/>
在一个应用程序,还应该对设备和LT运行列表视图项; 11
for list view items in an apps that should also run on devices <11 ?
由于 activated_state
HC之前是不可用的,我只能认为两脏的解决方法:
Since activated_state
is not available before HC, I can only think of two dirty workarounds:
- 手动维护activated_state在
活动
。 - 保持活性元素在我的自定义
ListAdapter
- Maintain the activated_state manually in your
Activity
. - Maintain the activated element in my custom
ListAdapter
但任何一个是令人满意的。 ( getListView()。setChoiceMode(...)
不会有效果......)
But either one is satisfying. (getListView().setChoiceMode(...)
wouldn't have an effect,...)
任何其他的想法?
推荐答案
你一看这个教程吗?
<一个href=\"http://mobile.tutsplus.com/tutorials/android/android-compatibility-list-indicators-on-honeycomb/\" rel=\"nofollow\">http://mobile.tutsplus.com/tutorials/android/android-compatibility-list-indicators-on-honeycomb/
这篇关于state_activated pre蜂窝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文