【发布时间】:2011-03-03 17:53:45
【问题描述】:
我看到新蜂窝有一个画廊样品。 它向您展示了如何通过添加
来更改所选文本视图的颜色android:background="?android:attr/activatedBackgroundIndicator"
到你的文本视图
但是,我的列表行不仅是一个文本视图,而且是一个视图下的视图集合 线性布局。
为了获得与蜂窝画廊列表选择相同的行为,我厌倦了设置此线性布局的背景,但它不起作用。所选行不会将颜色更改为蓝色。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background=" android:attr/activatedBackgroundIndicator">
<BUNCH OF OTHER VIEWS/>
</LinearLayout>
提前致谢。
【问题讨论】:
标签: android list layout background android-3.0-honeycomb