Android: ExpandableListView's extended group indicator is large when I use my own icon

I use these codes to set my own group indicator icon and set it to the right side of the list.

ExpandableListView list = (ExpandableListView) findViewById(R.id.SCHEDULE);

Drawable icon = StationInfo2.this.getResources().getDrawable(R.drawable.expander_group);

list.setGroupIndicator(icon);

list.setIndicatorBounds(list.getWidth() - 80, list.getWidth() - 40);

His works show my own badge, but the badge is displayed in the wrong size.

Becouse I'm new here, I can't post links or an image to show how it looks, but I hope someone has a good idea, how can I do this?

+5
source share
1 answer

All Articles