Closed fatihturgut closed 9 years ago
You can check the code in the demo app: https://github.com/gabrielemariotti/cardslib/blob/master/demo/stock/src/main/java/it/gmariotti/cardslib/demo/fragment/nativeview/NativeCardWithListFragment.java#L91
In you case, you have to assign the model to the view:
CardWithListModel card = new CardWithListModel(getApplicationContext());
card.init();
//Set card in the cardView
CardViewNative cardView = (CardViewNative) getActivity().findViewById(R.id.carddemo);
cardView.setCard(card);
Great :+1: @gabrielemariotti , you solved the problem immediately. Thank you, so much :)
Hi, this is great library. However, i could not get the card that you show on this link: https://github.com/gabrielemariotti/cardslib/blob/master/doc/CARDWITHLIST.md
I implemented every part of codes that you explain in that link. I got card on screen but only this card:
*This is my card_with_list.xml:
*This is my CardWithListModel class: