I
I
Ilya2018-04-09 20:11:40
Java
Ilya, 2018-04-09 20:11:40

How to make one menu with different items for different activities?

I have a menu of options in the application (which is in the upper right corner):
5acb9e2933361192098797.jpeg
Let's say we are on the screen with a list of movies. The menu will contain the following items: About the application, Genres, Exit.
We go to the "About the application" screen. There will be other items in the menu: List of films, Genres, Exit.
If we do it the stupid way, we will have several xml files in the menu folder . How to make it more beautiful, automate?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2018-04-10
@sidorchik

Different xml for different activities is ok. No "automation" is needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question