简体   繁体   中英

Navigation Drawers with Action Bar Tabs

I have read something that "you shouldn't use Navigation Drawers with Action Bar Tabs" (Roman Nurik at https://plus.google.com/u/0/+DavidTaSmoochibi/posts/8dWEkFcbTFX ). Is there any meaningful reason of this ? So if a team decided to create a big project with Action Bar Tabs and then on the second version, they decided to put a cool slider menu on the left side with Navigation Drawer, in this case they have to re-implement all tabs by avoiding Action Bar Tab styling ??

I use them in the same project but I saw that the Action Bar Tabs are always above the Navigation Drawer.

Is there any way to use both in the way the Navigation Drawer works as it should be (over the other elements) ?

A classic example would be Google's Play Store itself. If it has the navigation drawer then it will not have the action bar tabs and if it has action bar tabs it will not have the navigation drawer.

I think this is basically because if you click on one element of the navigation drawer, then the Activity has to load a Fragment into its FrameLayout . In case of action bar tabs too, the Activity has to deal with Fragment s.

So, even if it is possible, I wouldn't go through the hassle of implementing it.

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