Majid Hojati Majid Hojati - 1 year ago 96
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
how can I find default icon of indicator?Can some one help me ?thanks

Answer Source

You can try this:

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