CardStackUI icon indicating copy to clipboard operation
CardStackUI copied to clipboard

Set card height based on Content

Open vadol opened this issue 9 years ago • 5 comments

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?

vadol avatar Sep 26 '16 10:09 vadol

This is not yet implemented. I'll add it to the feature pipeline.

tushar-nallan avatar Oct 06 '16 03:10 tushar-nallan

I also want this feature how soon you can add this feature please guide.

kumaillakhani avatar Oct 29 '16 09:10 kumaillakhani

I can't do pull the code . So I send you details about change in code.

vadol avatar Nov 03 '16 06:11 vadol

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);
    }

vadol avatar Nov 03 '16 06:11 vadol

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??

NayanaRBhoj avatar Jan 24 '17 04:01 NayanaRBhoj