Hide divider without hiding childDivider on ExpandableListView

Posted by thomaus on Stack Overflow See other posts from Stack Overflow or by thomaus
Published on 2012-01-16T13:17:14Z Indexed on 2012/09/10 15:38 UTC
Read the original article Hit count: 392

I can't find a way to hide dividers on an ExpandableListView without hiding the child dividers too.

Here is my code.

<ExpandableListView 
            android:id="@+id/activities_list"
            android:background="@android:color/transparent"
            android:fadingEdge="none"           
            android:groupIndicator="@android:color/transparent"
            android:divider="@android:color/transparent"
            android:childDivider="@drawable/list_divider"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" />

With this code, I get no dividers on groups but no child dividers neither. If I set android:divider to "@drawable/list_divider" I get both group and child dividers.

Thanks in advance!

© Stack Overflow or respective owner

Related posts about android

Related posts about transparent