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:padding="8sp"
- android:orientation="vertical"
- tools:context="com.example.android.multiplechoicequiz.MainActivity">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="8dp"
- android:layout_marginBottom="40dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textSize="20sp"
- android:layout_alignParentLeft="true"/>
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:id="@+id/score"
- android:layout_alignParentRight="true"
- android:text="0"
- android:textSize="20sp"/>
- </RelativeLayout>
- <TextView
- android:layout_width="match_parent"
- android:layout_height="70dp"
- android:text="Which thing is alive?"
- android:textSize="20sp"
- android:padding="8dp"
- android:layout_marginBottom="40dp"
- android:id="@+id/question"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="bird"
- android:textColor="#fff"
- android:padding="8dp"
- android:layout_marginBottom="24dp"
- android:id="@+id/choice1"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textColor="#fff"
- android:padding="8dp"
- android:layout_marginBottom="24dp"
- android:id="@+id/choice2"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textColor="#fff"
- android:padding="8dp"
- android:layout_marginBottom="24dp"
- android:id="@+id/choice3"/>
- <Button
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textColor="#fff"
- android:padding="8dp"
- android:layout_marginBottom="24dp"
- android:id="@+id/quit"/>
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement