E
E
egotyner2016-05-03 16:25:06
Java
egotyner, 2016-05-03 16:25:06

What is the approach to change view in android?

There is an option to make it ViewFlipper, but it does not have a method like show(int index), but only showNext/showPrev. And that doesn't suit me. In general, I have a menu that slides out from the side .. like her .. NavigationView like. There are several items, by clicking on which you need to change the 'screens'. As far as I understand, this is done through different activities. Each menu item has its own activity. Is there a better way? For between these points data will be transferred, and well, it is very inconvenient to transfer them through this damned partialize or whatever it is. Passing simple data like string[] is easy, but when it comes to some more complex structure, the fun begins.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
itdroid, 2016-05-04
@egotyner

Each menu item has its own Fragment, and the host activity changes fragments depending on what the user has selected. All the fun with parcelable is taken over by the IDE (android studio).

E
egotyner, 2016-05-03
@egotyner

It seems that this is it: https://habrahabr.ru/post/236567/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question