-1
我做了一個應用程序,其中有導航抽屜模板。我已經修改了這個模板,但是抽屜總是在動作欄上方。請幫我解決這個問題。我希望抽屜佈局在操作欄下方。 The screen loks something like this上面的抽屜佈局行動酒吧
謝謝。
我做了一個應用程序,其中有導航抽屜模板。我已經修改了這個模板,但是抽屜總是在動作欄上方。請幫我解決這個問題。我希望抽屜佈局在操作欄下方。 The screen loks something like this上面的抽屜佈局行動酒吧
謝謝。
我使用這種方法來創建抽屜避免酒吧的覆蓋。 它運作良好,抽屜打開沒有蓋酒吧。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.Toolbar
android:id="@+id/mainToolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ToolbarCustomStyle">
</android.support.v7.widget.Toolbar>
<android.support.v4.widget.DrawerLayout
android:id="@+id/drawer_main_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/mainToolbar">
<!-- Content of Drawer-->
<android.support.design.widget.CoordinatorLayout
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorWhite">
<!-- INCLUDE LAYOUT CONTENT HERE using <include /> , or put directly your widgets-->
<include layout="@layout/content_main_activity" />
</android.support.design.widget.CoordinatorLayout>
<!-- NavDrawer actions -->
<android.support.design.widget.NavigationView
android:id="@+id/navigationView"
android:layout_width="@dimen/header_drawer_height_nav_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="@color/colorWhite"
android:orientation="vertical"
>
</android.support.design.widget.NavigationView>
</android.support.v4.widget.DrawerLayout>
</RelativeLayout>
但是當我們使用這個,而屏幕的衰落操作欄也越來越褪色 –
這可能有助於http://www.gadgetsaint.com/android/android-navigation-drawer-toolbar/#.WOBABBJ97fY – ASP