Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. android:gravity="center_horizontal"
  8. android:background="#000"
  9. tools:context=".MainActivity">
  10.  
  11. <TextView
  12. android:layout_width="wrap_content"
  13. android:layout_height="wrap_content"
  14. android:id="@+id/txtBlue"
  15. android:text="BLUE"
  16. android:layout_below="@id/txtYellow"
  17. android:layout_toStartOf="@id/txtYellow"
  18. android:textSize="35sp"
  19. android:background="#0a58ff"/>
  20.  
  21. <TextView
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:id="@+id/txtYellow"
  25. android:layout_toEndOf="@id/txtGreen"
  26. android:layout_below="@+id/txtGreen"
  27. android:text="YELLOW"
  28. android:textSize="35sp"
  29. android:background="#ffd20a"/>
  30.  
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_below="@id/txtRed"
  35. android:layout_toEndOf="@id/txtRed"
  36. android:id="@+id/txtGreen"
  37. android:text="GREEN"
  38. android:textSize="35sp"
  39. android:background="#0aff70"/>
  40.  
  41. <TextView
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:id="@+id/txtRed"
  45. android:text="RED"
  46. android:textSize="35sp"
  47. android:background="#ff0a0a"/>
  48.  
  49. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement