Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.38 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:padding="8sp"
  7.    android:orientation="vertical"
  8.    tools:context="com.example.android.multiplechoicequiz.MainActivity">
  9.  
  10.     <RelativeLayout
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:padding="8dp"
  14.        android:layout_marginBottom="40dp">
  15.  
  16.         <TextView
  17.            android:layout_width="wrap_content"
  18.            android:layout_height="wrap_content"
  19.            android:textSize="20sp"
  20.            android:layout_alignParentLeft="true"/>
  21.  
  22.         <TextView
  23.            android:layout_width="wrap_content"
  24.            android:layout_height="wrap_content"
  25.            android:id="@+id/score"
  26.            android:layout_alignParentRight="true"
  27.            android:text="0"
  28.            android:textSize="20sp"/>
  29.  
  30.     </RelativeLayout>
  31.  
  32.     <TextView
  33.        android:layout_width="match_parent"
  34.        android:layout_height="70dp"
  35.        android:text="Which thing is alive?"
  36.        android:textSize="20sp"
  37.        android:padding="8dp"
  38.        android:layout_marginBottom="40dp"
  39.        android:id="@+id/question"/>
  40.  
  41.  
  42.     <Button
  43.        android:layout_width="match_parent"
  44.        android:layout_height="wrap_content"
  45.        android:text="bird"
  46.        android:textColor="#fff"
  47.        android:padding="8dp"
  48.        android:layout_marginBottom="24dp"
  49.        android:id="@+id/choice1"/>
  50.  
  51.     <Button
  52.        android:layout_width="match_parent"
  53.        android:layout_height="wrap_content"
  54.        android:textColor="#fff"
  55.        android:padding="8dp"
  56.        android:layout_marginBottom="24dp"
  57.        android:id="@+id/choice2"/>
  58.  
  59.     <Button
  60.        android:layout_width="match_parent"
  61.        android:layout_height="wrap_content"
  62.        android:textColor="#fff"
  63.        android:padding="8dp"
  64.        android:layout_marginBottom="24dp"
  65.        android:id="@+id/choice3"/>
  66.  
  67.     <Button
  68.        android:layout_width="match_parent"
  69.        android:layout_height="wrap_content"
  70.        android:textColor="#fff"
  71.        android:padding="8dp"
  72.        android:layout_marginBottom="24dp"
  73.        android:id="@+id/quit"/>
  74.  
  75. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement