If I use the default group indicator (without setting a new one), how do I know the fill width for a groupview layout?
So let my layout not overlap with the group indicator.
Is it possible? Because I cannot find the getGroupIndicator method. Or should I install a new one that I know its size.
I found the attribute here:
android:paddingLeft="?android:attr/expandableListPreferredItemPaddingLeft"
Or you can use reflection:
Field field_mIndicatorRight = listView.getClass().getDeclaredField("mIndicatorRight"); field_mIndicatorRight.setAccessible(true); int mIndicatorRight = (Integer) field_mIndicatorRight.get(listView);