Temporary Repositioning Of Item In RecyclerView
I have a RecyclerView
that displays items that I want to be enlarged (displayed full screen instead of their current size) when the user holds them, and then restored to how they were previously displayed in the RecyclerView
. I have been able to add the necessary event handlers (LongClick
& Touch
) to the ViewHolder
(s), but because enabling them to use the full screen requires (unless there is a better way) moving them to a different ViewGroup
(most likely the root), I am not sure how to do this. I thought about simply adding a permanent placeholder in the root that I modify & change the visibility of, but this seems somewhat inefficient. Is there a good or better way to do this?