riyanwenas

header.xml

Feb 15th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="190dp"
  5. android:background="@android:color/holo_red_light"
  6. android:orientation="vertical">
  7.  
  8. <TextView
  9. android:id="@+id/textName"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_above="@+id/textProfile"
  13. android:layout_marginStart="30dp"
  14. android:gravity="start"
  15. android:paddingBottom="4dp"
  16. android:textColor="#FFF"
  17. android:textSize="22sp"
  18. android:textStyle="bold" />
  19.  
  20. <TextView
  21. android:id="@+id/textProfile"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:layout_alignParentBottom="true"
  25. android:layout_alignStart="@+id/textName"
  26. android:layout_marginBottom="50dp"
  27. android:layout_marginTop="10dp"
  28. android:gravity="start"
  29. android:textColor="#fff"
  30. android:textSize="18sp"
  31. android:textStyle="bold" />
  32.  
  33. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment