画像とテキストビューを持つカスタム リストを作成しました。スタイルを設定すると、セレクターは表示されません。スタイルは setTheme(R.style.rose); を使用して呼び出されます。最初の呼び出しとして Listactivity の create メソッドで。ただし、背景として色が使用されていない場合 (またはスタイルの背景線がコメントされている場合)、オレンジ色のセレクターが表示されます。しかし、背景が
リストセレクター
<item android:state_focused="true"
android:state_pressed="true"
android:drawable="@drawable/list_selector_background_transition" />
<item android:state_pressed="true"
android:drawable="@drawable/list_selector_background_pressed" />
<item android:state_focused="true"
android:drawable="@drawable/list_selector_background_focus" />
スタイル
<style name="rose">
<item name="android:textColor">@color/pink</item>
<item name="android:background">@color/rose</item>
<item name="android:cacheColorHint">@color/rose</item>
<item name="android:listSelector">@drawable/listitem_selector</item>
</style>