mAdapter = new SimpleExpandableListAdapter(
this,
groupData,
R.layout.expand_item,
new String[] { NAME, IS_EVEN },
new int[] { android.R.id.text1, android.R.id.text2 },
childData,
//如果是simple_expandable_list_item2,则字显示不全。
android.R.layout.simple_list_item_2,
new String[] { NAME, IS_EVEN },
new int[] { android.R.id.text1, android.R.id.text2 }
this,
groupData,
R.layout.expand_item,
new String[] { NAME, IS_EVEN },
new int[] { android.R.id.text1, android.R.id.text2 },
childData,
//如果是simple_expandable_list_item2,则字显示不全。
android.R.layout.simple_list_item_2,
new String[] { NAME, IS_EVEN },
new int[] { android.R.id.text1, android.R.id.text2 }
);
重写android.R.layout.simple_expandlist_item_1,(位置在e'xternal libary 里res文件夹里的layout里,把它的源码考备,在工程内的res新建一个layout,然后拷过去,加上backgruod的颜色,再调用就可以了)