SoFunction
Updated on 2025-03-11

Android About ExpandableListView to remove the dividing line inside

About ExpandableListView,
I wrote a class that inherited from BaseExpandableListAdapter
groups,childs

All of them are done, and the effect is shown is the same as many demos on the Internet. Now I just want to remove the dividing line between the items below that group.

Anyone know?

----- Solution ---------------------------
(null);

Up, if not, set a transparent color.

----- Solution ---------------------------
OK,
android:divider="@null"

----- Solution ---------------------------
It is estimated that line can be set in getview

----- Solution ---------------------------
You can set driverHeight="0dip" or driver="transparent picture", which is to set the dividing line of the first-level menu, and the second-level menu ChildDriver="0dip"

----- Solution ---------------------------
set diveder height = 0;

The above is the full content of Android's ExpandableListView method to remove the dividing lines inside the ExpandableListView. I hope everyone supports me~