Guest User

Header Layout

a guest
May 5th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 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="@dimen/nav_header_height"
  5. android:background="@drawable/side_nav_bar"
  6. android:gravity="bottom"
  7. android:orientation="vertical"
  8. android:paddingBottom="@dimen/activity_vertical_margin"
  9. android:paddingLeft="@dimen/activity_horizontal_margin"
  10. android:paddingRight="@dimen/activity_horizontal_margin"
  11. android:paddingTop="@dimen/activity_vertical_margin"
  12. android:theme="@style/ThemeOverlay.AppCompat.Dark">
  13.  
  14. <ImageView
  15. android:id="@+id/imageView"
  16. android:layout_width="wrap_content"
  17. android:layout_height="50dp"
  18. android:scaleType="fitStart"
  19. android:paddingTop="@dimen/nav_header_vertical_spacing"
  20. android:src="@drawable/drawer"
  21. android:layout_gravity="left" />
  22.  
  23. <TextView
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:paddingTop="@dimen/nav_header_vertical_spacing"
  27. android:text="Austin K"
  28. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  29.  
  30. <TextView
  31. android:id="@+id/textView"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="test@email.com" />
  35.  
  36. </LinearLayout>
Add Comment
Please, Sign In to add comment