我实现了我的SimpleExpandableListAdapter
,我正在尝试自定义部分标题。为此,我将groupTo参数的自定义 ID传递给构造函数:TextView
setListAdapter( new SimpleExpandableListAdapter(this,
groupsData,
android.R.layout.simple_expandable_list_item_1,
new String[]{SECTION},
new int[]{R.id.list_group_title},
innerData,
0,
null,
new int[]{}){ /*my code here*/ });
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/list_group_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textSize="20dip" />
问题是,什么都没有出现!整个东西都是空白的,好像视图不存在一样。关于为什么的任何想法,或者我可以阅读的任何链接来解决这个问题?谢谢!