main_frame_activity.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:id="@+id/main_drawer_layout"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@android:color/transparent" >
  8. <RelativeLayout
  9. android:id="@+id/main_content_frame_parent"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:background="@android:color/transparent" >
  13. <!-- 下层显示的主要内容 -->
  14. <FrameLayout
  15. android:id="@+id/main_content_frame"
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent"
  18. android:background="@color/white"
  19. android:scrollbars="vertical" >
  20. </FrameLayout>
  21. </RelativeLayout>
  22. <!-- 左侧滑动栏 -->
  23. <RelativeLayout
  24. android:id="@+id/main_left_drawer_layout"
  25. android:layout_width="240dp"
  26. android:layout_height="match_parent"
  27. android:layout_gravity="start"
  28. android:background="@android:color/transparent"
  29. android:paddingTop="50dp" >
  30. </RelativeLayout>
  31. <!-- 右侧滑动栏 -->
  32. <RelativeLayout
  33. android:id="@+id/main_right_drawer_layout"
  34. android:layout_width="240dp"
  35. android:layout_height="match_parent"
  36. android:layout_gravity="end"
  37. android:background="@android:color/transparent"
  38. android:paddingTop="50dp" >
  39. </RelativeLayout>
  40. </android.support.v4.widget.DrawerLayout>