ExpandableLayout icon indicating copy to clipboard operation
ExpandableLayout copied to clipboard

Multiple RecyclerView items expanded when using CardView as Rootview

Open BenjyTec opened this issue 7 years ago • 1 comments

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.

BenjyTec avatar Sep 29 '18 13:09 BenjyTec

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

cachapa avatar Sep 30 '18 07:09 cachapa