nレベルの拡張可能なリストビューandroidを表示する方法、3レベルの拡張可能な例のみを取得しています。
これを参照してください:リンク
Androidのマルチレベル拡張可能ディスプレイのガイドラインまたは適切な例を教えてください。
ありがとう、
この例によると。
public View getChildView(int groupPosition, int childPosition,
boolean isLastChild, View convertView, ViewGroup parent) {
CustExpListview SecondLevelexplv = new CustExpListview(Vincent_ThreeelevellistActivity.this);
SecondLevelexplv.setAdapter(new SecondLevelAdapter());
SecondLevelexplv.setGroupIndicator(null);
return SecondLevelexplv;
}
ここで、メソッドは クラスごとgetChildView
に新しいアダプターを作成し、アダプターとして設定します。新しいクラスを作成してClassメソッドで設定する
のと同じ方法です 。CustExpListview
BaseExpandableListAdapter
CustExpListview
getChildView