Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I remove button of ExpandableListView?

I've used a custom ExpandableListAdapter in my project. How can I remove this button? enter image description here

like image 372
Kermia Avatar asked Apr 10 '12 15:04

Kermia


2 Answers

In XML

android:groupIndicator="@null"

or in code

expListView.setGroupIndicator(null)
like image 105
207 Avatar answered Nov 16 '22 22:11

207


Did you try to use this: android:groupIndicator="@android:color/transparent" ?

I don't know why you want to remove this button, but for some cases my advise can be useful.

like image 2
Kenneth Avatar answered Nov 17 '22 00:11

Kenneth