Temporary Repositioning Of Item In RecyclerView

Nathan Sokalski 4,106 Reputation points
2022-10-25T03:19:02.747+00:00

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?

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.