Search in sources :

Example 6 with PicassoCard

use of it.gmariotti.cardslib.demo.extras.cards.PicassoCard in project cardslib by gabrielemariotti.

the class List2wayFragment method initCard.

/**
     * This method builds a simple list of cards
     */
private ArrayList<Card> initCard() {
    //Init an array of Cards
    ArrayList<Card> cards = new ArrayList<Card>();
    for (int i = 0; i < 200; i++) {
        PicassoCard card = new PicassoCard(this.getActivity());
        card.setTitle("A simple card loaded with Picasso " + i);
        card.setSecondaryTitle("Simple text..." + i);
        card.setCount(i);
        cards.add(card);
    }
    return cards;
}
Also used : ArrayList(java.util.ArrayList) PicassoCard(it.gmariotti.cardslib.demo.extras.cards.PicassoCard) PicassoCard(it.gmariotti.cardslib.demo.extras.cards.PicassoCard) Card(it.gmariotti.cardslib.library.internal.Card)

Aggregations

PicassoCard (it.gmariotti.cardslib.demo.extras.cards.PicassoCard)6 Card (it.gmariotti.cardslib.library.internal.Card)6 ArrayList (java.util.ArrayList)6 OnItemMovedListener (com.nhaarman.listviewanimations.itemmanipulation.dragdrop.OnItemMovedListener)2 CardDragDropArrayAdapter (it.gmariotti.cardslib.library.extra.dragdroplist.internal.CardDragDropArrayAdapter)2 CardArrayAdapter (it.gmariotti.cardslib.library.internal.CardArrayAdapter)2 CardListView (it.gmariotti.cardslib.library.view.CardListView)2 StickyCardArrayAdapter (it.gmariotti.cardslib.demo.extras.stickylist.StickyCardArrayAdapter)1 StickyCardListView (it.gmariotti.cardslib.demo.extras.stickylist.StickyCardListView)1