use of it.gmariotti.cardslib.demo.cards.CustomHeaderInnerCard in project cardslib by gabrielemariotti.
the class HeaderFragment method init_header_with_custom_inner_layout.
/**
* This method builds a header with custom inner layout
*/
private void init_header_with_custom_inner_layout() {
//Create a Card
Card card = new Card(getActivity());
//Create a CardHeader
CustomHeaderInnerCard header = new CustomHeaderInnerCard(getActivity());
//Add Header to card
card.addCardHeader(header);
//Set card in the CardView
CardView cardView = (CardView) getActivity().findViewById(R.id.carddemo_header_inner);
cardView.setCard(card);
}
use of it.gmariotti.cardslib.demo.cards.CustomHeaderInnerCard in project cardslib by gabrielemariotti.
the class NativeHeaderFragment method init_header_with_custom_inner_layout.
/**
* This method builds a header with custom inner layout
*/
private void init_header_with_custom_inner_layout() {
//Create a Card
Card card = new Card(getActivity());
//Create a CardHeader
CustomHeaderInnerCard header = new CustomHeaderInnerCard(getActivity());
//Add Header to card
card.addCardHeader(header);
//Set card in the CardViewNative
CardViewNative cardViewNative = (CardViewNative) getActivity().findViewById(R.id.carddemo_header_inner);
cardViewNative.setCard(card);
}
Aggregations