I'm trying to implement custom behavior when I click on a map inside a RecyclerView , what I want to do is to animate the selected layout of the element, expanding and adding top on top of it, with the screen darkening behind. My current approach is to call notifyItemChanged when the element is clicked and when the bindViewHolder method is called, I add fab, since the animateLayoutChanges property is set to true in the root of the element’s layout, the element expands thinly, but I couldn’t cope, darken the screen behind the card, for example, if the map was interactive, I also want a click outside the map to reject all changes, is there any other way to do this?

source share