use of com.nhaarman.listviewanimations.appearance.AnimationAdapter in project cardslib by gabrielemariotti.
the class ListViewGridAnimationsFragment method setBottomRightAdapter.
/**
* Bottom-right animation
*/
private void setBottomRightAdapter() {
AnimationAdapter animCardArrayAdapter = new SwingBottomInAnimationAdapter(new SwingRightInAnimationAdapter(mCardArrayAdapter));
animCardArrayAdapter.setAbsListView(mListView);
mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
use of com.nhaarman.listviewanimations.appearance.AnimationAdapter in project cardslib by gabrielemariotti.
the class ListViewGridAnimationsFragment method setScaleAdapter.
/**
* Scale animation
*/
private void setScaleAdapter() {
AnimationAdapter animCardArrayAdapter = new ScaleInAnimationAdapter(mCardArrayAdapter);
animCardArrayAdapter.setAbsListView(mListView);
mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
use of com.nhaarman.listviewanimations.appearance.AnimationAdapter in project cardslib by gabrielemariotti.
the class ListViewGridAnimationsFragment method setAlphaAdapter.
/**
* Alpha animation
*/
private void setAlphaAdapter() {
AnimationAdapter animCardArrayAdapter = new AlphaInAnimationAdapter(mCardArrayAdapter);
animCardArrayAdapter.setAbsListView(mListView);
mListView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
use of com.nhaarman.listviewanimations.appearance.AnimationAdapter in project cardslib by gabrielemariotti.
the class AnimateStaggeredGridFragment method setRightAdapter.
/**
* Right animation
*/
private void setRightAdapter() {
AnimationAdapter animCardArrayAdapter = new SwingRightInAnimationAdapter(mCardArrayAdapter);
setCommonAnimation(animCardArrayAdapter);
animCardArrayAdapter.setAbsListView(staggeredView);
staggeredView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
use of com.nhaarman.listviewanimations.appearance.AnimationAdapter in project cardslib by gabrielemariotti.
the class AnimateStaggeredGridFragment method setLeftAdapter.
/**
* Left animation
*/
private void setLeftAdapter() {
AnimationAdapter animCardArrayAdapter = new SwingLeftInAnimationAdapter(mCardArrayAdapter);
setCommonAnimation(animCardArrayAdapter);
animCardArrayAdapter.setAbsListView(staggeredView);
staggeredView.setExternalAdapter(animCardArrayAdapter, mCardArrayAdapter);
}
Aggregations