//@Override protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); mExpandableListItemAdapter = new MyExpandableListItemAdapter(this); AlphaInAnimationAdapter alphaInAnimationAdapter = new AlphaInAnimationAdapter(mExpandableListItemAdapter); alphaInAnimationAdapter.setAbsListView(getListView()); //assert alphaInAnimationAdapter.getViewAnimator() != null; alphaInAnimationAdapter.getViewAnimator().setInitialDelayMillis(INITIAL_DELAY_MILLIS); getListView().Adapter = alphaInAnimationAdapter; Toast.MakeText(this, Resource.String.explainexpand, ToastLength.Long).Show(); }
//@Override protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.activity_stickylistheaders); StickyListHeadersListView listView = (StickyListHeadersListView)FindViewById(Resource.Id.activity_stickylistheaders_listview); listView.SetFitsSystemWindows(true); MyListAdapter adapter = new MyListAdapter(this); AlphaInAnimationAdapter animationAdapter = new AlphaInAnimationAdapter(adapter); StickyListHeadersAdapterDecorator stickyListHeadersAdapterDecorator = new StickyListHeadersAdapterDecorator(animationAdapter); stickyListHeadersAdapterDecorator.setListViewWrapper(new StickyListHeadersListViewWrapper(listView)); //assert animationAdapter.getViewAnimator() != null; animationAdapter.getViewAnimator().setInitialDelayMillis(500); //assert stickyListHeadersAdapterDecorator.getViewAnimator() != null; stickyListHeadersAdapterDecorator.getViewAnimator().setInitialDelayMillis(500); listView.Adapter=stickyListHeadersAdapterDecorator; }