<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/drawerLayout" tools:context="com.bwei.drawerlayout.MainActivity"> <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="1" android:id="@+id/fl"></FrameLayout> <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="horizontal" android:id="@+id/rg"> <RadioButton android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:text="第一个" android:button="@null" android:id="@+id/btn1"/> <RadioButton android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:text="第二个" android:button="@null" android:id="@+id/btn2"/> <RadioButton android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:text="第三个" android:button="@null" android:id="@+id/btn3"/> <RadioButton android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" android:text="第四个" android:button="@null" android:id="@+id/btn4"/> </RadioGroup> </LinearLayout> <ListView android:layout_width="200dp" android:layout_height="match_parent" android:id="@+id/lv" android:background="@color/colorPrimary" android:layout_gravity="start" android:choiceMode="singleChoice" ></ListView> </android.support.v4.widget.DrawerLayout>
侧滑布局
最新推荐文章于 2024-05-26 09:55:50 发布