expandablelistview - Android expandable listview child divider -
i have expandable listview child view, when ever click on group view expand , display child view, have hide divider between parent , child expanded group make visible when collapse, using default divider, how can this.?
here perfect solution.
to hide child divider set color transparent #00000000
define transparent in color.xml file
<color name="transparent">#00000000</color>
and set child divider
listview.setchilddivider(getresources().getdrawable(r.color.transparent))
or in layout xml file
<expandablelistview android:layout_width="fill_parent" android:layout_height="fill_parent" android:childdivider="#00000000"/>
here output :
for more detail visit here.
Comments
Post a Comment