Search in sources :

Example 1 with GplayCardCustomSource

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

the class ThumbnailFragment method init_card_thumb_custom_source.

/**
     * This method builds a card with a custom source thumbnail
     */
private void init_card_thumb_custom_source() {
    //Create a Card
    Card card = new GplayCardCustomSource(getActivity());
    //Set card in the cardView
    CardView cardView = (CardView) getActivity().findViewById(R.id.carddemo_thumb_customsource);
    cardView.setCard(card);
}
Also used : GplayCardCustomSource(it.gmariotti.cardslib.demo.cards.GplayCardCustomSource) CardView(it.gmariotti.cardslib.library.view.CardView) CustomThumbCard(it.gmariotti.cardslib.demo.cards.CustomThumbCard) Card(it.gmariotti.cardslib.library.internal.Card)

Example 2 with GplayCardCustomSource

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

the class NativeThumbnailFragment method init_card_thumb_custom_source.

/**
     * This method builds a card with a custom source thumbnail
     */
private void init_card_thumb_custom_source() {
    //Create a Card
    Card card = new GplayCardCustomSource(getActivity());
    //Set card in the cardView
    CardViewNative cardView = (CardViewNative) getActivity().findViewById(R.id.carddemo_thumb_customsource);
    cardView.setCard(card);
}
Also used : GplayCardCustomSource(it.gmariotti.cardslib.demo.cards.GplayCardCustomSource) CustomThumbCard(it.gmariotti.cardslib.demo.cards.CustomThumbCard) Card(it.gmariotti.cardslib.library.internal.Card) CardViewNative(it.gmariotti.cardslib.library.view.CardViewNative)

Aggregations

CustomThumbCard (it.gmariotti.cardslib.demo.cards.CustomThumbCard)2 GplayCardCustomSource (it.gmariotti.cardslib.demo.cards.GplayCardCustomSource)2 Card (it.gmariotti.cardslib.library.internal.Card)2 CardView (it.gmariotti.cardslib.library.view.CardView)1 CardViewNative (it.gmariotti.cardslib.library.view.CardViewNative)1