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.
Asked
Active
Viewed 3,266 times
0

Abid Khan
- 2,451
- 4
- 22
- 45
2 Answers
5
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"/>

Zahid
- 677
- 4
- 6
-
tried this but it gives me black color between that space what to do now? – Abid Khan Apr 16 '14 at 07:43
-
@Zahid It also add margin between child item. I don't want divider height between child items. – hasnain_ahmad Mar 04 '16 at 07:40
0
Hope this example would helps you..
ExpandableListView - How to set divider only between parent elements

Community
- 1
- 1

Giridharan
- 4,402
- 5
- 27
- 30
-
-
add margin for parent group layout in xml file..i think it would sove problem – Giridharan Apr 16 '14 at 06:58
-