简体   繁体   中英

Navigation drawer use at another activity only, not in main activity

I have a project containing different activities like: main activity, signup activity, login activity and track activity. Now I want to create another activity which will contain navigation drawer. And the point is "I don't want to use navigation drawer at any other activity".

All the example so far I found at searching @ net provide example using main activity. But I don't want to use navigation bar at main activity.

If you are using Android Studio, follow these steps,


 1. Right click on app.
 2. new -> activity -> navigationDrawerActivity

this way only your new activity will have navigation drawer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM