Looking for a similar solution. There is an application where fragments are located in the navigation drawer. Clicking on each of them opens an individual list of X with its own elements. By clicking on some of the items, it opens:

  • new lists with items ( similar to recyclerView ).
  • google map with markers (for each list is different).
  • new lists with items that click on a google map with markers (for each list is different).

The actual questions are as follows:

  • Is it worth it to implement the fragment in the fragment
  • If the lists are the same (picture + text), then it is possible to implement 1 recyclerView with an adapter, which I will simply use in each fragment?
  • How to put another recyclerView in one recyclerView?
  • How, after selecting a category, replace the click on the recycler Maps fragment?

    1 answer 1

    1. The fragment in the fragment is not a very idea. Try to avoid it - less problems will be

    2. Yes, you can. But only if the data is really similar. Do not overload the adapter only in order for it to work for all possible cases. Better create a few.

    3. Just put one more in the cell of the other. But it is better not to do so - problems may arise. On the other hand, the ViewPager / ScrollView inside the RecyclerView cells works fine.

    4. This is best done by opening a separate activation. So more control over what is happening and the separation of logic.

    • Can you please explain in more detail the 3rd and 4th paragraph please. In the 3rd, I understand that you meant that android-arsenal.com/details/1/1622 , I didn’t mean it at all, at least not so visually. Just as we have a recycler list, click on one of its items and open other similar lists. As for the 4th item, again, it turns out by clicking on an item in the recycler list, I open the activit, where do I drop my google map? - Inkognito
    • 3. Can you keep in mind drop-down lists? Then you need ExpandableListView or a third-party solution for it through RecyclerView. 4. Yes, new activations and anything in it, for example, a map - YuriySPb
    • in the 4th paragraph, then such a structure Fragment - Recycler - Activiity / Fragment (<include map>)? - Inkognito
    • @Inkognito, yes, something like that. - Yuriy SPb