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

Multiple RecyclerView items expanded when using CardView as Rootview #69

Open
BenjyTec opened this issue Sep 29, 2018 · 1 comment
Open

Comments

@BenjyTec
Copy link

BenjyTec commented Sep 29, 2018

I used the exact same layout for my recycler_item.xml file like in your demo project, and also pasted the code of the RecyclerView Adapter (except the custom Interpolator).
As soon as I change the LinearLayour in recycler_item.xml to a CardView along with the attribute CardUseCompatPadding="true", if I expand the first item, then scroll down, I can expand the last item without the first item collapsing. It is lagging while expanding, although I only have nine items in my RecyclerView. With the LinearLayout it is working perfectly.

Did I miss something? Maybe the issue isn't directly related to CardView, but rather to a sort of lag, as there also are items not collapsing when using a custom Interpolator.

@cachapa
Copy link
Owner

cachapa commented Sep 30, 2018

I've had reports of incompatibilities with CardView. It might be related to the way CardView sets its margins.

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

2 participants