Recently I began to learn programming for Android and wondered. Almost every application has a pull-down menu on the left, to finish it you need to create a new activity or just add a LinearLayout element?
2 answers
Use the default NavigationDrawer that offers Google
|
Probably you mean SlidingMenu. To do this, you can use a third-party library, for example, this . In this case, the new activation is not necessary, there you can simply set a separate layout for the menu.
- Taak, good. I downloaded the library, imported the library folder into Eclipse. Now you need to link the library with my project. I went to the Properties of my project, and added (Add) library. I did not see any changes in the project. What to do? - murash
- Obviously, you need to look for the SlidingMenu android example. Everything is simple enough, but at first glance it is not quite obvious. If in a nutshell, then you need to create a markup for the menu and an instance of the SlidingMenu class in the code, after that everything should work. - Kota1921
- @murash, there is an item in the manual called "How to Integrate this Library into Your Projects". I would do the extends SlidingActivity and specify the layout of the menu using the setBehindContentView () method. - BArtWell
|