use of com.nhaarman.listviewanimations.appearance.simple.AlphaInAnimationAdapter in project ListViewAnimations by nhaarman.
the class ExpandableListItemActivity method onCreate.
@Override
protected void onCreate(final Bundle savedInstanceState) {
super.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().setAdapter(alphaInAnimationAdapter);
Toast.makeText(this, R.string.explainexpand, Toast.LENGTH_LONG).show();
}
Aggregations