Search in sources :

Example 1 with SuggestedCard

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

the class NativeMiscCardFragment method initCardSuggested.

/**
     * This method builds a suggested card example
     */
private void initCardSuggested() {
    SuggestedCard card = new SuggestedCard(getActivity());
    CardViewNative cardView = (CardViewNative) getActivity().findViewById(R.id.carddemo_suggested);
    cardView.setCard(card);
}
Also used : SuggestedCard(it.gmariotti.cardslib.demo.cards.SuggestedCard) CardViewNative(it.gmariotti.cardslib.library.view.CardViewNative)

Example 2 with SuggestedCard

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

the class MiscCardFragment method initCardSuggested.

/**
     * This method builds a suggested card example
     */
private void initCardSuggested() {
    SuggestedCard card = new SuggestedCard(getActivity());
    CardView cardView = (CardView) getActivity().findViewById(R.id.carddemo_suggested);
    cardView.setCard(card);
}
Also used : SuggestedCard(it.gmariotti.cardslib.demo.cards.SuggestedCard) CardView(it.gmariotti.cardslib.library.view.CardView)

Aggregations

SuggestedCard (it.gmariotti.cardslib.demo.cards.SuggestedCard)2 CardView (it.gmariotti.cardslib.library.view.CardView)1 CardViewNative (it.gmariotti.cardslib.library.view.CardViewNative)1