1
私はSimpleExpandableListAdapter
を実装しました。セクションタイトルをカスタマイズしようとしています。これを行うには、私はgroupToパラメータにconstructorにカスタムTextView
のIDを渡す:SimpleExpandableListAdapterセクションのタイトル
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" />
問題は、何も現れていませんさ!あたかもビューがなかったかのように、全体が空白になります。 なぜ、または私はこれを解決するために読むことができる任意のアイデア?ありがとう!