<?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" tools:context="com.example.com.yuekao.MainActivity"> <RelativeLayout android:id="@+id/fr_content" android:layout_width="match_parent" android:layout_height="match_parent"> </RelativeLayout> <!--菜单--> <LinearLayout android:id="@+id/lin_menu" android:layout_width="200dp" android:layout_height="match_parent" android:layout_gravity="start" android:background="#f00" android:orientation="vertical" > <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_launcher_round" /> <ListView android:id="@+id/lv" android:layout_width="match_parent" android:layout_height="match_parent" ></ListView> </LinearLayout> </android.support.v4.widget.DrawerLayout>
抽屉布局
最新推荐文章于 2024-06-16 22:25:48 发布