Concept of implementing a RecyclerView

0

I'm developing an application for native android and I'm wondering how best to implement the following behavior:

  • I have a RecyclerView that lists several items (of course), however I want, when I hold one of these items open a sub screen with features of this item.

The most accurate way to accomplish this so far, I can think of is to load each item in the recyclerView with two layouts , one invisible (GONE) and the other visible, when longClick would override the layouts. I think I would have a hard time putting the item on top of the recyclerView, so that it would just pop out of that screen when minimized. Another idea would be to replace the entire recyclerView with a new layout.

My main doubts are:

  • Having a more complex layout (even if invisible) can greatly impact if it is on every item in a recyclerView, and many items are possible?
  • I can make a good control of the item position in the recyclerView, keep the expanded item always on the visible screen, without letting the user give scrool?

grateful

    
asked by anonymous 02.02.2017 / 21:55

0 answers