Found some similar questions, but no answers that work. Now I am doing this:
private ExpandableListView elv;
elv.setGroupIndicator(getResources().getDrawable(R.drawable.expandable_list_icon_selector));
expandable_list_icon_selector.xml:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_empty="true" android:drawable="@android:color/transparent"/>
</selector>
Unfortunately, this hides the indicator for all groups, even if they are not empty. It seems that when the group is not expanded, the android considers it empty. Any tips? Thank.
source
share