T
T
Tsuzukeru2021-03-30 19:30:27
Android
Tsuzukeru, 2021-03-30 19:30:27

What is the best way to do reverse navigation?

It is necessary to make reverse navigation as in the YouTube application from the fragment of the search results to the fragment of the recommendations feed.
These fragments are similar, have the same View, but different data.
How to do it better?
1) Do not make two fragments, but make only one and process the button click back by loading the necessary data from the necessary LiveData?
2) Make two fragments?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2021-03-31
@Tsuzukeru

Make two snippets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question