下面的ActionBar导航抽屉 [英] Navigation drawer below Actionbar

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

问题描述

现在我刚开始一个项目Android Studio中的导航栏作为模板preconfigured。显然,它把动作条背后的抽屉式导航栏。你发现很多问题要在动作条的顶部导航的抽屉,我想有它开始动作条的下方。这是我目前有:

Right now I just started a project in Android Studio with the NavigationBar as preconfigured in the template. Apparently it puts the navigation drawer behind the actionbar. Many questions you find want the navigation drawer on top of the actionbar, I would like to have it start below the actionbar. This is what I currently have:

最终期望情况:

我已经找到<一个href=\"http://stackoverflow.com/questions/24139846/navigation-drawer-below-transparent-actionbar\">this解决办法,但我觉得应该有一个更简单的方法。

I have found this solution, but I think there should be an easier way.

推荐答案

应用此属性到根的ViewGroup 的android:layout_marginTop =机器人:ATTR / actionBarSize。希望这有助于。

Apply this attribute to your root viewgroup android:layout_marginTop="?android:attr/actionBarSize". Hope this helps.

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

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