tags:

views:

2672

answers:

1

How to set Background color of expandable List in android

+2  A: 

You need to set both the background color AND the cacheColorHint to the same color (black, in the example below). If you don't, the list will appear to flicker as you scroll through it, same as a regular ListView.

<ExpandableListView
    android:background="#000000"
    android:cacheColorHint="#000000"
    ... />

Also, your child views will be drawn over the ExpandableListView, so make sure you aren't setting their background colors unnecessarily.

Mike