test Discovery Layout_gravity to controlDrawerlayout Menu Page The general argument is that the first child node of Drawerlayout is the content page, The second child node is the Drawerlayout menu page
<android.support.v4.widget.DrawerLayout 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"
>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff" //注:白色
android:layout_gravity="start"
>
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff0" //注:黄色
>
</FrameLayout>
</android.support.v4.widget.DrawerLayout>
Test results:
<android.support.v4.widget.DrawerLayout 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"
>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff" //白色
>
</FrameLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ff0" //黄色
android:layout_gravity="start"
>
</FrameLayout>
</android.support.v4.widget.DrawerLayout>
Test results:
From for notes (Wiz)
Drawerlayout who is the menu bar test results