简体   繁体   English

带有透明操作栏的导航抽屉

[英]Navigation Drawer with Transparent Action Bar

I know this is a possible duplicate question but I need to create a transparent action bar with a navigation drawer to look like我知道这可能是一个重复的问题,但我需要创建一个带有导航抽屉的透明操作栏,看起来像这个 . . Here is my style.xml这是我的 style.xml

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="android:windowFullscreen">false</item>
        <item name="android:windowNoTitle">true</item>   
        <item name="android:windowIsTranslucent">true</item>
        <item name="colorPrimary">@color/colorPrimary</item>
    </style>

and this is my drawer layout xml xml code这是我的抽屉布局 xml xml 代码

我会使用工具栏而不是操作栏,它更容易服装化和使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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