9

nレベルの拡張可能なリストビューandroidを表示する方法、3レベルの拡張可能な例のみを取得しています。

これを参照してください:リンク

Androidのマルチレベル拡張可能ディスプレイのガイドラインまたは適切な例を教えてください。

ありがとう、

4

1 に答える 1

9

この例によると。

   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
BaseExpandableListAdapterCustExpListviewgetChildView

于 2012-10-22T11:32:24.370 に答える