Bear in mind, I created the buttons in the ActionBar and now I have such a question, how to bind these buttons? For example, I want the top to be able to navigate through the application using the buttons. Well, for example, the Onelevel button transferred to the first level, but the TwoLevel button transferred to the second level. I do not know how to set the properties of these buttons to redirect. Please tell me, thank you in advance.

  • What does the first and second level mean? - Andrew Goroshko
  • It is better to use activit with fragments and by clicking on the buttons change them (fragments). Then you can enclose all the processing in the framework of a single class. Set properties - via setOnClickListener(...) , after "detecting" - findViewById(R.id.button1) - Jarvis_J
  • I agree with Jarvis_J, but based on your question, it looks like you have very little experience, so I can advise you to go here: startandroid.ru/ru/uroki/vse-uroki-spiskom/… , and study a little theory first. How to do, everything is there. - Valeriy
  • and if you have a minimum English, you should use the study course: eu.udacity.com/course/android-development-for-beginners--ud837 , in principle, English needs only conditional, the course is built on video, and most videos have Russian subtitles. I'm going through myself now) - Valeriy

0