Friday, 27 September 2013

How to disable a childdivider in an ExpandableListView in Android

How to disable a childdivider in an ExpandableListView in Android

I'm trying to hide child dividers in my ExpandableListView. I've managed
to make the child dividers transparent by adding:
<ExpandableListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:childDivider="#00000000"/>
But it removes the last divider of the current group as well as removing
the first divider of the next group. I want to keep the dividers on both
sides of each group, and remove the internal dividers between children.
I'd post an image showing what I'm looking for but this is my first post
and it wouldn't let me. :)
Any help would be appreciated!

No comments:

Post a Comment