Scofield
Scofield

Reputation: 139

how to change ExpandableListview left icon to others (android ExpandableListView)

Now I want to use a ExpandableListView to display my data and I want to change the item left icon or let it disappear. can some one give me a suggestion .

thx.

Upvotes: 3

Views: 5368

Answers (3)

Jorgesys
Jorgesys

Reputation: 126455

Other option to remove the default icon from the .xml layout.

<ExpandableListView 
   ... 
   ...
    android:groupIndicator="@null" />

or

 getExpandableListView().setGroupIndicator(null);

Upvotes: 0

Asqan
Asqan

Reputation: 4489

In this video, you can find preciesly how you can change the icons (in expandable list).

39 Android Tutorial Working with ExpandableListView 6

Upvotes: 1

Paul Denninger
Paul Denninger

Reputation: 41

setGroupIndicator(null) should make it go away.

Upvotes: 4

Related Questions