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.
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 attributeCardUseCompatPadding="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.