そのため、カスタムの ExpandableListView インジケーター アイコンを設定しようとしていますが、機能していません。アイコンを作成し、drawable フォルダーに保存しました。アイコンは次のとおりです。
これはセレクタです:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/arrow_up" android:state_empty="true"/>
<item android:drawable="@drawable/arrow_down" android:state_activated="true"/>
</selector>
ExpandableListView xml:
<ExpandableListView
android:id="@+id/lvExp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:groupIndicator="@drawable/custom_arrow" />
ただし、アプリを起動すると、インジケーターがまったく表示されません。私が間違ったことをしたことはありますか?