Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:gravity="center_horizontal"
- android:background="#000"
- tools:context=".MainActivity">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/txtBlue"
- android:text="BLUE"
- android:layout_below="@id/txtYellow"
- android:layout_toStartOf="@id/txtYellow"
- android:textSize="35sp"
- android:background="#0a58ff"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/txtYellow"
- android:layout_toEndOf="@id/txtGreen"
- android:layout_below="@+id/txtGreen"
- android:text="YELLOW"
- android:textSize="35sp"
- android:background="#ffd20a"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/txtRed"
- android:layout_toEndOf="@id/txtRed"
- android:id="@+id/txtGreen"
- android:text="GREEN"
- android:textSize="35sp"
- android:background="#0aff70"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/txtRed"
- android:text="RED"
- android:textSize="35sp"
- android:background="#ff0a0a"/>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement