Advertisement
yuuna55

fragment_navigation_drawer

Dec 23rd, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. android:layout_height="match_parent"
  3. android:layout_width="match_parent"
  4. android:id="@+id/googleDrawer"
  5. android:background="@android:color/white">
  6.  
  7. <RelativeLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="168dp"
  10. android:background="@drawable/sagiri"
  11. android:id="@+id/navigationHeader"
  12. android:paddingTop="24dp">
  13.  
  14. <ImageView
  15. android:layout_width="64dp"
  16. android:layout_height="64dp"
  17. android:id="@+id/imgAvatar"
  18. android:layout_alignParentTop="true"
  19. android:layout_alignParentLeft="true"
  20. android:layout_alignParentStart="true"
  21. android:layout_marginLeft="16dp"
  22. android:layout_marginTop="16dp"
  23. android:layout_marginBottom="8dp"
  24. android:visibility="invisible"/>
  25.  
  26. <LinearLayout
  27. android:orientation="vertical"
  28. android:layout_width="fill_parent"
  29. android:layout_height="56dp"
  30. android:layout_alignParentLeft="true"
  31. android:layout_alignParentStart="true"
  32. android:layout_below="@+id/imgAvatar"
  33. android:layout_marginRight="16dp"
  34. android:layout_marginLeft="16dp"
  35. android:layout_marginBottom="8dp">
  36.  
  37. <TextView
  38. android:layout_width="match_parent"
  39. android:layout_height="0dp"
  40. android:id="@+id/txtUsername"
  41. android:layout_weight="1"
  42. android:textSize="14sp"
  43. android:textStyle="bold"
  44. android:textColor="@android:color/white"/>
  45.  
  46. <TextView
  47. android:layout_width="match_parent"
  48. android:layout_height="0dp"
  49. android:id="@+id/txtUserEmail"
  50. android:layout_weight="1"
  51. android:textColor="@android:color/white"/>
  52. </LinearLayout>
  53. </RelativeLayout>
  54.  
  55. <View
  56. android:layout_width="match_parent"
  57. android:background="#1f000000"
  58. android:layout_height="1dp"
  59. android:id="@+id/separator"
  60. android:layout_below="@+id/navigationHeader"
  61. android:layout_marginBottom="8dp"/>
  62.  
  63. <android.support.v7.widget.RecyclerView
  64. android:id="@+id/drawerList"
  65. android:layout_width="match_parent"
  66. android:clickable="true"
  67. android:scrollbars="vertical"
  68. android:layout_height="match_parent"
  69. android:background="@color/myDrawerBackground"
  70. android:layout_below="@+id/separator"/>
  71.  
  72. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement