Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout 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:layout_alignParentTop="true"
- android:layout_alignParentRight="true"
- android:layout_alignParentEnd="true"
- android:paddingBottom="0dp"
- android:paddingLeft="0dp"
- android:paddingTop="0dp"
- android:paddingRight="0dp"
- tools:context=".MainActivity"
- android:orientation="vertical">
- <LinearLayout
- android:orientation="horizontal"
- android:layout_width="match_parent"
- android:layout_height="108dp">
- <TextView
- android:textAlignment="center"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#FF0000"
- android:layout_weight="1"
- android:text="red"
- android:textColor="#FFFFFF"
- android:textSize="20dp"
- />
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#00FF00"
- android:layout_weight="1"
- android:text="green"
- android:textColor="#FFFFFF"
- android:textAlignment="center"
- android:textSize="20dp"
- />
- <TextView
- android:textAlignment="center"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#0000FF"
- android:layout_weight="1"
- android:text="blue"
- android:textColor="#FFFFFF"
- android:textSize="20dp"
- />
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:background="#FFFF00"
- android:layout_weight="1"
- android:text="yellow"
- android:textColor="#FFFFFF"
- android:textAlignment="center"
- android:textSize="20dp"
- />
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement