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