use of it.gmariotti.cardslib.library.internal.dismissanimation.SwipeDismissAnimation in project cardslib by gabrielemariotti.
the class DismissAnimFragment method initCards.
private void initCards() {
//Init an array of Cards
ArrayList<Card> cards = new ArrayList<Card>();
for (int i = 0; i < 200; i++) {
Card card = initDismissCard(i);
cards.add(card);
}
mCardArrayAdapter = new CardArrayAdapter(getActivity(), cards);
dismissAnimation = (SwipeDismissAnimation) new SwipeDismissAnimation(getActivity()).setup(mCardArrayAdapter);
CardListView listView = (CardListView) getActivity().findViewById(R.id.carddemo_list_dismissanim);
if (listView != null) {
listView.setAdapter(mCardArrayAdapter);
}
}
Aggregations