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"
- android:orientation="vertical" android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:id="@+id/background">
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textAlignment="center"
- android:paddingBottom="20px">
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:text="1101120185"
- android:textAlignment="center"
- android:textSize="40px"
- android:textColor="#fff"
- android:background="#000"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="20px">
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
- <TextView
- android:layout_width="300px"
- android:layout_height="wrap_content"
- android:text="RED"
- android:textSize="50px"
- android:textColor="#ff0000"
- android:layout_marginTop="10px"
- android:layout_gravity="center"
- android:textAlignment="center"
- android:id="@+id/textred"/>
- <TextView
- android:layout_width="300px"
- android:layout_height="wrap_content"
- android:text="GREEN"
- android:textSize="50px"
- android:textColor="#00ff00"
- android:layout_marginTop="10px"
- android:textAlignment="center"
- android:layout_gravity="center"
- android:id="@+id/textgreen"/>
- <TextView
- android:layout_width="300px"
- android:layout_height="wrap_content"
- android:text="BLUE"
- android:textSize="50px"
- android:textAlignment="center"
- android:textColor="#0000ff"
- android:layout_marginTop="10px"
- android:layout_marginBottom="10px"
- android:layout_gravity="center"
- android:id="@+id/textblue"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="20px">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="RED"
- android:background="#ff0000"
- android:layout_marginTop="10px"
- android:layout_gravity="center"
- android:id="@+id/red"
- android:onClick="onclickred"/>
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="GREEN"
- android:background="#00ff00"
- android:layout_marginTop="10px"
- android:layout_gravity="center"
- android:id="@+id/green" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="BLUE"
- android:background="#0000ff"
- android:layout_marginTop="10px"
- android:layout_marginBottom="10px"
- android:layout_gravity="center"
- android:id="@+id/blue" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="CYAN"
- android:background="#00ffff"
- android:layout_marginTop="10px"
- android:layout_gravity="center"
- android:id="@+id/cyan" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="MAGENTA"
- android:background="#ff00ff"
- android:layout_marginTop="10px"
- android:layout_gravity="center"
- android:id="@+id/magenta" />
- <Button
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="YELLOW"
- android:background="#ffff00"
- android:layout_marginTop="10px"
- android:layout_marginBottom="10px"
- android:layout_gravity="center"
- android:id="@+id/yellow" />
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:paddingTop="100px">
- <ImageView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/alvsign"/>
- </LinearLayout>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement