Majid Hojati Majid Hojati - 2 months ago 16
Android Question

android Expandable listview default indicator image

I am going to hide indicator of groups using this code in my adapter

if ( getChildrenCount( groupPosition ) == 0 ) {
holder. Indicator.setVisibility( View.INVISIBLE );
} else {
holder. Indicator.setVisibility( View.VISIBLE );
holder. Indicator.setImageResource( isExpanded ? R.drawable.list_group_expanded : R.drawable.list_group_closed );
}


But I want to use defult expandable list item images instead of
list_group_expanded
and
list_group_closed
how can I find default icon of indicator?Can some one help me ?thanks

Answer

You can try this:

holder. Indicator.setImageResource( isExpanded ? android.R.drawable.arrow_up_float : android.R.drawable.arrow_down_float );