Set card height based on Content
I have different layout to be adapted in list. And each card is having different content, so I want to have card's height wrap_content. How do I do that?
This is not yet implemented. I'll add it to the feature pipeline.
I also want this feature how soon you can add this feature please guide.
I can't do pull the code . So I send you details about change in code.
MyCardStackAdapter.java Make on Method
public void clearbackstack() {
((MainActivity)mContext).getSupportFragmentManager().popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);
}
CardStackAdapter.java
public void resetCards() {
MyCardStackAdapter myCardStackAdapter=new MyCardStackAdapter((MainActivity) mContext);
myCardStackAdapter.clearbackstack();
Log.e("RESETCARD", "");
resetCards(null);
}
Same requirement for me, i want to add different content in cards so need card height to be wrap content. Also in the example the CardStackLayout is implemented on Activity. In my case m having a viewpager each page of viewpager is a fragment, in one of that fragment i have implemented CardStackLayout....when a card is touched the card height goes to match parent and bottom of card is not visible, how to solve this??