选项卡上的 Android 导航抽屉 [英] Android Navigation Drawer over the tabs

查看:19
本文介绍了选项卡上的 Android 导航抽屉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用支持库中提供的新导航抽屉.将抽屉与选项卡一起使用时,抽屉菜单将显示在选项卡下方,如下所示.我如何确保抽屉菜单显示在选项卡上.(它应该像没有标签一样显示抽屉菜单)

I am using the new navigation drawer available from the support library. When using the drawer along with tabs, the drawer menu is getting displayed below the tabs as shown below. How can i make sure the drawer menu is shown on the tabs. (It should display the drawer menu as if there are no tabs)

没有标签的抽屉菜单

带有标签的抽屉菜单

推荐答案

我遇到了同样的问题,我从 Roman Nurik(Android 团队)那里得到的答案是导航抽屉不应该与操作栏选项卡一起使用.

I got the same issue and the answer I got from Roman Nurik (Android team) is that the Navigation Drawer should not be used with the Action Bar tabs.

讨论可以在这里找到:https://plus.google.com/u/1/116515063230772720916/posts/8dWEkFcbTFX

The discussion can be found here: https://plus.google.com/u/1/116515063230772720916/posts/8dWEkFcbTFX

这篇关于选项卡上的 Android 导航抽屉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆