Concept of implementing a Recyclerview

Asked

Viewed 133 times

0

I am developing a native android application and I am in doubt how to best implement the following behavior:

  • I have a Recyclerview that lists several items (obviously), however I want that 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 that I can think of is to load each recyclerView item with two layouts, being an invisible one (GONE) and the other visible, when the longClick would replace the layouts. I think it would have some difficulty to position the item in evidence at the top of recyclerView, so that it would only come out of this screen when minimized.
Another idea would be to replace all recyclerView with a new layout.

My main doubts are:

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

grateful

  • https://bignerdranch.github.io/expandable-recycler-view/ :p

  • The normal approach is to have two Fragments. One for the list and one for the detail(features). On small screens, the detail Fragment replaces the list Fragment when an item is chosen. On larger screens, they are presented side by side or one above the other.

  • @ramaral Until now I was doing something similar, recyclerView was replaced by a new layout. I’m already using expandableListView, but I like the idea of expandablerecyclerView.

  • @ramaral I implemented bignerdranch rv Expandable. I wonder if you could help me. I intend to put a recyclerview inside the recyclerview Expandable, however, I cannot call the rv "inflate" inside the Child.

  • I suppose this is not possible. However ask a new question with the code you tried.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.