Advertisement
alvinputrau

Untitled

Jan 28th, 2016
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.69 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical" android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:id="@+id/background">
  6.  
  7.     <LinearLayout
  8.        android:layout_width="fill_parent"
  9.        android:layout_height="wrap_content"
  10.        android:textAlignment="center"
  11.        android:paddingBottom="20px">
  12.         <TextView
  13.            android:layout_width="fill_parent"
  14.            android:layout_height="fill_parent"
  15.            android:text="1101120185"
  16.            android:textAlignment="center"
  17.            android:textSize="40px"
  18.            android:textColor="#fff"
  19.            android:background="#000"/>
  20.     </LinearLayout>
  21.     <LinearLayout
  22.        android:layout_width="fill_parent"
  23.        android:layout_height="wrap_content"
  24.        android:paddingBottom="20px">
  25.  
  26.         <LinearLayout
  27.            android:layout_width="fill_parent"
  28.            android:layout_height="wrap_content"
  29.            android:orientation="vertical">
  30.             <TextView
  31.                android:layout_width="300px"
  32.                android:layout_height="wrap_content"
  33.                android:text="RED"
  34.                android:textSize="50px"
  35.                android:textColor="#ff0000"
  36.                android:layout_marginTop="10px"
  37.                android:layout_gravity="center"
  38.                android:textAlignment="center"
  39.                android:id="@+id/textred"/>
  40.             <TextView
  41.                android:layout_width="300px"
  42.                android:layout_height="wrap_content"
  43.                android:text="GREEN"
  44.                android:textSize="50px"
  45.                android:textColor="#00ff00"
  46.                android:layout_marginTop="10px"
  47.                android:textAlignment="center"
  48.                android:layout_gravity="center"
  49.                android:id="@+id/textgreen"/>
  50.             <TextView
  51.                android:layout_width="300px"
  52.                android:layout_height="wrap_content"
  53.                android:text="BLUE"
  54.                android:textSize="50px"
  55.                android:textAlignment="center"
  56.                android:textColor="#0000ff"
  57.                android:layout_marginTop="10px"
  58.                android:layout_marginBottom="10px"
  59.                android:layout_gravity="center"
  60.                android:id="@+id/textblue"/>
  61.  
  62.         </LinearLayout>
  63.     </LinearLayout>
  64.     <LinearLayout
  65.        android:layout_width="fill_parent"
  66.        android:layout_height="wrap_content"
  67.        android:paddingBottom="20px">
  68.         <LinearLayout
  69.            android:layout_width="wrap_content"
  70.            android:layout_height="wrap_content"
  71.            android:layout_weight="1"
  72.            android:orientation="vertical">
  73.             <Button
  74.                android:layout_width="wrap_content"
  75.                android:layout_height="wrap_content"
  76.                android:text="RED"
  77.                android:background="#ff0000"
  78.                android:layout_marginTop="10px"
  79.                android:layout_gravity="center"
  80.                android:id="@+id/red"
  81.                android:onClick="onclickred"/>
  82.             <Button
  83.                android:layout_width="wrap_content"
  84.                android:layout_height="wrap_content"
  85.                android:text="GREEN"
  86.                android:background="#00ff00"
  87.                android:layout_marginTop="10px"
  88.                android:layout_gravity="center"
  89.                android:id="@+id/green" />
  90.             <Button
  91.                android:layout_width="wrap_content"
  92.                android:layout_height="wrap_content"
  93.                android:text="BLUE"
  94.                android:background="#0000ff"
  95.                android:layout_marginTop="10px"
  96.                android:layout_marginBottom="10px"
  97.                android:layout_gravity="center"
  98.                android:id="@+id/blue" />
  99.  
  100.  
  101.         </LinearLayout>
  102.         <LinearLayout
  103.            android:layout_width="wrap_content"
  104.            android:layout_height="wrap_content"
  105.            android:layout_weight="1"
  106.            android:orientation="vertical">
  107.             <Button
  108.                android:layout_width="wrap_content"
  109.                android:layout_height="wrap_content"
  110.                android:text="CYAN"
  111.                android:background="#00ffff"
  112.                android:layout_marginTop="10px"
  113.                android:layout_gravity="center"
  114.                android:id="@+id/cyan" />
  115.             <Button
  116.                android:layout_width="wrap_content"
  117.                android:layout_height="wrap_content"
  118.                android:text="MAGENTA"
  119.                android:background="#ff00ff"
  120.                android:layout_marginTop="10px"
  121.                android:layout_gravity="center"
  122.                android:id="@+id/magenta" />
  123.             <Button
  124.                android:layout_width="wrap_content"
  125.                android:layout_height="wrap_content"
  126.                android:text="YELLOW"
  127.                android:background="#ffff00"
  128.                android:layout_marginTop="10px"
  129.                android:layout_marginBottom="10px"
  130.                android:layout_gravity="center"
  131.                android:id="@+id/yellow" />
  132.  
  133.         </LinearLayout>
  134.     </LinearLayout>
  135.     <LinearLayout
  136.        android:layout_width="wrap_content"
  137.        android:layout_height="wrap_content"
  138.        android:layout_gravity="center"
  139.        android:paddingTop="100px">
  140.         <ImageView
  141.            android:layout_width="fill_parent"
  142.            android:layout_height="wrap_content"
  143.            android:background="@drawable/alvsign"/>
  144.     </LinearLayout>
  145. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement