use of it.gmariotti.cardslib.library.view.CardViewNative in project cardslib by gabrielemariotti.
the class NativeMiscCardFragment method initCardMayKnow.
/**
* This method builds a simple card
*/
private void initCardMayKnow() {
//Create a Card
MayKnowCard card = new MayKnowCard(getActivity());
card.setShadow(false);
//Set card in the cardView
CardViewNative cardView = (CardViewNative) getActivity().findViewById(R.id.carddemo_MayKnow);
cardView.setCard(card);
MayKnowCard card2 = new MayKnowCard(getActivity());
card2.addCardHeader(null);
card2.setShadow(true);
CardViewNative mayView2 = (CardViewNative) getActivity().findViewById(R.id.carddemo_MayKnow2);
mayView2.setCard(card2);
}
use of it.gmariotti.cardslib.library.view.CardViewNative 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);
}
Aggregations