Android 激活背景指示灯的颜色选择器不工作

Android 激活背景指示灯的颜色选择器不工作,android,android-layout,Android,Android Layout,我试图使列表视图中的选定项保持高亮显示。搜索后,activatedBackgroundIndicator应该是一个简单的方法,但我似乎无法让它工作。这是我的代码段 对于我的单个项目布局,我有res/layout/simplerow.xml <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height=

我试图使列表视图中的选定项保持高亮显示。搜索后,activatedBackgroundIndicator应该是一个简单的方法,但我似乎无法让它工作。这是我的代码段

对于我的单个项目布局,我有res/layout/simplerow.xml

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="10dp"
android:gravity="bottom"
android:textAppearance="?android:attr/textAppearanceMedium"
android:background="?android:attr/activatedBackgroundIndicator" >
</TextView>

还有我的颜色选择器,我有res/drawable/playerbg.xml

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true" android:drawable="@drawable/frame_selected"/>
<item android:state_activated="true" android:drawable="@drawable/frame_activated"/>
<item android:state_pressed="true" android:drawable="@drawable/frame_pressed" />
</selector>

我可以看到颜色选择器正在工作,因为当我按下其中一个项目时,我会按下图片框。但是我不能让任何颜色保持高亮度。我使用的是API 17,运行在android 4.2的真实设备上