//加载第三包 design //布局 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout 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.asus.guangbo.MainActivity"> <android.support.v4.widget.DrawerLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/dw" tools:layout_editor_absoluteY="0dp" tools:layout_editor_absoluteX="0dp"> <RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Hello World!" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:layout_marginTop="198dp" /> </RelativeLayout> //侧滑的另一个页面 <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="left" android:src="@mipmap/ic_launcher" /> </android.support.v4.widget.DrawerLayout> </RelativeLayout>
侧滑
最新推荐文章于 2023-08-09 14:05:06 发布