一:在xml文件里面写死
<ExpandableListView
android:id="@+id/myExpandableListView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#ffffff"
android:groupIndicator="@null" //去掉图标
android:cacheColorHint="#00000000" //解决点击或者下来背景变黑的问题
android:listSelector="#00000000" >
</ExpandableListView>
二.在程序里面动态改变
ExpandableListView expandListView = (ExpandableListView) findViewById(R.id.list);