删除navigationDrawer顶部“阴影”
问题描述:
我需要删除阴影,显示当我打开navigationdrawer,我想看到我的ActionBar(其完整的v21 appcompat工具栏)。删除navigationDrawer顶部“阴影”
这是截图就知道我的问题:
这是我的代码:
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.firext.android.activities.work.WorkActivity">
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<fragment
android:id="@+id/navigation_drawer"
android:name="com.firext.android.activities.work.navigationdrawer.NavigationDrawerFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="@+id/toolbar"
android:layout_below="@+id/toolbar"
android:layout_gravity="start"
android:layout_marginTop="?attr/actionBarSize"
tools:layout="@layout/work_navigation" />
</android.support.v4.widget.DrawerLayout>
答
是否有一个具体的理由是使用工具栏?如果你只是像使用ActionBar一样使用它,为什么不使用ActionBar呢?那么问题将被修复。
其他解决方案,我能想到的是要显示在工具栏的顶部抽屉,这是它的方式是应该被作为设计规范中规定:http://www.google.com/design/spec/layout/structure.html#structure-side-nav-1
你解决这个问题?如果是的话,让我知道你是如何做到的 – 2015-11-23 05:11:16