Temporary Repositioning Of Item In RecyclerView

Nathan Sokalski 4,116 Reputation points

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?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,207 questions
{count} votes