@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    MyExpandableListItemAdapter myExpandableListItemAdapter =
        new MyExpandableListItemAdapter(this, getItems());
    AlphaInAnimationAdapter alphaInAnimationAdapter =
        new AlphaInAnimationAdapter(myExpandableListItemAdapter);
    alphaInAnimationAdapter.setAbsListView(getListView());
    getListView().setAdapter(alphaInAnimationAdapter);

    Toast.makeText(this, R.string.explainexpand, Toast.LENGTH_LONG).show();
  }
Exemplo n.º 2
0
 private void setValue() {
   adapter = new PictureAdapter(getActivity(), mLists);
   AlphaInAnimationAdapter alphaInAnimationAdapter = new AlphaInAnimationAdapter(adapter);
   alphaInAnimationAdapter.setAbsListView(mGridView);
   mGridView.setAdapter(alphaInAnimationAdapter);
 }