1. android:layout_gravity 3. android:background 4. android:elevation 5. app:layout_collapseMode 6. app:layout_collapseParallaxMultiplier <androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:id="@+id/content_frame" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@android:color/white"> </FrameLayout> <LinearLayout android:id="@+id/left_drawer" android:layout_width="240dp" android:layout_height="match_parent" android:layout_gravity="start" android:orientation="vertical" android:background="@android:color/darker_gray"> </LinearLayout> </androidx.drawerlayout.widget.DrawerLayout>


上一篇:
下一篇:
切换中文