分享一个C布局(代码)
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout xmlns:android="https://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/drawer_layout"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="9"
android:id="@+id/show_frame"
/>
<RadioGroup
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:orientation="horizontal"
android:id="@+id/show_rg"
>
<RadioButton
android:text="棣栭〉"
android:id="@+id/btn1"
style="@style/myStyle"
/>
<RadioButton
android:text="鍒嗙被"
android:id="@+id/btn2"
style="@style/myStyle"
/>
<RadioButton
android:text="鎴戠殑"
android:id="@+id/btn3"
style="@style/myStyle"
/>
</RadioGroup>
</LinearLayout>
<!--渚ф爮-->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
android:background="#fff"
android:orientation="vertical"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="200dp"
android:src="@drawable/header"
android:id="@+id/nav_header"
/>
<TextView
android:layout_marginTop="21dp"
android:layout_width="match_parent"
android:layout_height="60dp"
android:id="@+id/nav_goods"
android:text="鍟嗗搧"
android:layout_marginLeft="21dp"
/>
<TextView
android:id="@+id/nav_tuijian"
android:layout_width="match_parent"
android:layout_height="60dp"
android:layout_marginLeft="21dp"
android:text="鐬庢帹鑽? />
</LinearLayout>
</android.support.v4.widget.DrawerLayout>