Salman
Salman

Reputation: 2471

Android: space between Expandable ListView Groups

How can I add an extra space between an expandable listview groups just like in the below image and that space should also remain in case of no item.

enter image description here

Upvotes: 0

Views: 3291

Answers (2)

Zahid
Zahid

Reputation: 677

Try this,

        <ExpandableListView
        android:id="@+id/lvExp"
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:dividerHeight="Your desired height"
        android:divider="Your desired color"/> 

Upvotes: 5

Giridharan
Giridharan

Reputation: 4462

Hope this example would helps you..

ExpandableListView - How to set divider only between parent elements

Upvotes: 0

Related Questions