Search in sources :

Example 1 with GoogleNowBirthCard

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

the class NativeBirthDayCardFragment method init2.

private void init2() {
    GoogleNowBirthCard card2 = new GoogleNowBirthCard(getActivity());
    card2.setId("myId2");
    card2.USE_VIGNETTE = 1;
    //Set card in the cardView
    CardViewNative cardView2 = (CardViewNative) getActivity().findViewById(R.id.carddemo_cardBirth2);
    cardView2.setCard(card2);
}
Also used : GoogleNowBirthCard(it.gmariotti.cardslib.demo.cards.GoogleNowBirthCard) CardViewNative(it.gmariotti.cardslib.library.view.CardViewNative)

Example 2 with GoogleNowBirthCard

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

the class NativeBirthDayCardFragment method init1.

private void init1() {
    //Create a Card
    birthCard = new GoogleNowBirthCard(getActivity());
    birthCard.setId("myId");
    //Set card in the cardView
    cardView = (CardViewNative) getActivity().findViewById(R.id.carddemo_cardBirth);
    cardView.setCard(birthCard);
}
Also used : GoogleNowBirthCard(it.gmariotti.cardslib.demo.cards.GoogleNowBirthCard)

Example 3 with GoogleNowBirthCard

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

the class BirthDayCardFragment method init1.

private void init1() {
    //Create a Card
    birthCard = new GoogleNowBirthCard(getActivity());
    birthCard.setId("myId");
    //Set card in the cardView
    cardView = (CardView) getActivity().findViewById(R.id.carddemo_cardBirth);
    cardView.setCard(birthCard);
}
Also used : GoogleNowBirthCard(it.gmariotti.cardslib.demo.cards.GoogleNowBirthCard)

Example 4 with GoogleNowBirthCard

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

the class BirthDayCardFragment method init3.

private void init3() {
    GoogleNowBirthCard card3 = new GoogleNowBirthCard(getActivity());
    card3.setId("myId3");
    card3.USE_VIGNETTE = 2;
    //Set card in the cardView
    CardView cardView3 = (CardView) getActivity().findViewById(R.id.carddemo_cardBirth3);
    cardView3.setCard(card3);
}
Also used : GoogleNowBirthCard(it.gmariotti.cardslib.demo.cards.GoogleNowBirthCard) CardView(it.gmariotti.cardslib.library.view.CardView)

Example 5 with GoogleNowBirthCard

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

the class NativeBirthDayCardFragment method init3.

private void init3() {
    GoogleNowBirthCard card3 = new GoogleNowBirthCard(getActivity());
    card3.setId("myId3");
    card3.USE_VIGNETTE = 2;
    //Set card in the cardView
    CardViewNative cardView3 = (CardViewNative) getActivity().findViewById(R.id.carddemo_cardBirth3);
    cardView3.setCard(card3);
}
Also used : GoogleNowBirthCard(it.gmariotti.cardslib.demo.cards.GoogleNowBirthCard) CardViewNative(it.gmariotti.cardslib.library.view.CardViewNative)

Aggregations

GoogleNowBirthCard (it.gmariotti.cardslib.demo.cards.GoogleNowBirthCard)6 CardView (it.gmariotti.cardslib.library.view.CardView)2 CardViewNative (it.gmariotti.cardslib.library.view.CardViewNative)2