Advertisement
Guest User

Untitled

a guest
Oct 15th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XBasic 2.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:layout_alignParentTop="true"
  7.     android:layout_alignParentRight="true"
  8.     android:layout_alignParentEnd="true"
  9.     android:paddingBottom="0dp"
  10.     android:paddingLeft="0dp"
  11.     android:paddingTop="0dp"
  12.     android:paddingRight="0dp"
  13.     tools:context=".MainActivity"
  14.     android:orientation="vertical">
  15.  
  16.     <LinearLayout
  17.         android:orientation="horizontal"
  18.         android:layout_width="match_parent"
  19.         android:layout_height="108dp">
  20.  
  21.         <TextView
  22.             android:textAlignment="center"
  23.             android:layout_width="fill_parent"
  24.             android:layout_height="fill_parent"
  25.             android:background="#FF0000"
  26.             android:layout_weight="1"
  27.             android:text="red"
  28.             android:textColor="#FFFFFF"
  29.             android:textSize="20dp"
  30.  
  31.             />
  32.         <TextView
  33.             android:layout_width="fill_parent"
  34.             android:layout_height="fill_parent"
  35.             android:background="#00FF00"
  36.             android:layout_weight="1"
  37.             android:text="green"
  38.             android:textColor="#FFFFFF"
  39.             android:textAlignment="center"
  40.             android:textSize="20dp"
  41.             />
  42.         <TextView
  43.             android:textAlignment="center"
  44.             android:layout_width="fill_parent"
  45.             android:layout_height="fill_parent"
  46.             android:background="#0000FF"
  47.             android:layout_weight="1"
  48.             android:text="blue"
  49.             android:textColor="#FFFFFF"
  50.             android:textSize="20dp"
  51.             />
  52.         <TextView
  53.             android:layout_width="fill_parent"
  54.             android:layout_height="fill_parent"
  55.             android:background="#FFFF00"
  56.             android:layout_weight="1"
  57.             android:text="yellow"
  58.             android:textColor="#FFFFFF"
  59.             android:textAlignment="center"
  60.             android:textSize="20dp"
  61.  
  62.             />
  63.  
  64.     </LinearLayout>
  65.  
  66. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement