Advertisement
minafaw3

RightToggle

Jul 7th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical" >
  6.  
  7. <!-- Action-bar looking view -->
  8.  
  9. <FrameLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="@dimen/actionbar_dimen" <!-- its equal 56dp -->
  12. android:background="@color/blue" >
  13.  
  14. <ImageView
  15. android:id="@+id/drawer_indicator"
  16. android:layout_width="@dimen/actionbar_dimen"
  17. android:layout_height="@dimen/actionbar_dimen"
  18. android:layout_gravity="right"
  19. android:background="@drawable/drawer_selector"
  20. android:scaleType="centerInside" />
  21.  
  22. <TextView
  23. android:id="@+id/indicator_style"
  24. android:layout_width="wrap_content"
  25. android:layout_height="@dimen/actionbar_dimen"
  26. android:layout_gravity="center"
  27. android:background="@drawable/drawer_selector"
  28. android:gravity="center"
  29. android:paddingLeft="12dp"
  30. android:paddingRight="12dp"
  31. android:text="@string/tests"
  32. android:textColor="@android:color/white"
  33. android:textStyle="bold" />
  34.  
  35. <ImageView
  36. android:layout_width="@dimen/actionbar_dimen"
  37. android:layout_height="@dimen/actionbar_dimen"
  38. android:layout_gravity="left"
  39. android:background="@android:color/white"
  40. android:src="@drawable/sos_s"
  41. android:scaleType="centerInside" />
  42. </FrameLayout>
  43.  
  44. <!-- Content -->
  45.  
  46.  
  47.  
  48.  
  49. <android.support.v4.widget.DrawerLayout
  50. android:id="@+id/drawer_layout"
  51. android:layout_width="match_parent"
  52. android:layout_height="0dp"
  53. android:layout_weight="1" >
  54.  
  55. <FrameLayout
  56. android:id="@+id/view_content"
  57. android:layout_width="match_parent"
  58. android:layout_height="match_parent"
  59. android:background="@color/light_gray"
  60. android:gravity="center" />
  61.  
  62. <LinearLayout
  63. android:id="@+id/drawer_content"
  64. android:layout_width="240dp"
  65. android:layout_height="match_parent"
  66. android:layout_gravity="end"
  67. android:background="@android:color/white"
  68. android:gravity="center"
  69. android:orientation="vertical" >
  70.  
  71. <ImageView
  72. android:layout_width="wrap_content"
  73. android:layout_height="100dp"
  74. android:src="@drawable/images"
  75. android:visibility="gone" />
  76.  
  77. <ListView
  78. android:id="@+id/DrawerList"
  79. android:layout_width="240dp"
  80. android:layout_height="match_parent"
  81. android:text="@string/drawer_hint" />
  82. </LinearLayout>
  83. </android.support.v4.widget.DrawerLayout>
  84.  
  85. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement