Search code examples
androidexpandablelistviewindicator

How can I get the width of ExpandableListView's group indicator drawable on Android?


If I use the default group indicator (not setting a new one), how can I know the padding width for the layout of groupview?

So can let my layout won't overlap with the group indicator.

Is that possible? Because I can't find a method to getGroupIndicator. Or I must have to set a new one that I know its size.


Solution

  • I found the attribute here:

    android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"