cachapa / ExpandableLayout

An expandable layout container for Android
Apache License 2.0
2.32k stars 269 forks source link

Multiple RecyclerView items expanded when using CardView as Rootview #69

Open BenjyTec opened 5 years ago

BenjyTec commented 5 years ago

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 commented 5 years ago

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