Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set card height based on Content #24

Open
vadol opened this issue Sep 26, 2016 · 5 comments
Open

Set card height based on Content #24

vadol opened this issue Sep 26, 2016 · 5 comments
Assignees

Comments

@vadol
Copy link

vadol commented Sep 26, 2016

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?

@tushar-nallan
Copy link
Contributor

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

@tushar-nallan tushar-nallan self-assigned this Oct 6, 2016
@kumaillakhani
Copy link

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

@vadol
Copy link
Author

vadol commented Nov 3, 2016

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

@vadol
Copy link
Author

vadol commented Nov 3, 2016

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

@NayanaRBhoj
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants