如何使用
<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:
活动
。保持活性元素在我的自定义 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,...)
任何其他的想法?
你一看这个教程吗?
http://mobile.tutsplus.com/tutorials/android/android-compatibility-list-indicators-on-honeycomb/