Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.76 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:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    android:padding="24dp"
  9.    tools:context=".MainActivity">
  10.  
  11.     <TextView
  12.        android:textSize="24dp"
  13.        android:id="@+id/tvQuestion"
  14.        android:layout_width="match_parent"
  15.        android:layout_height="wrap_content"
  16.        android:layout_gravity="center_horizontal"
  17.        android:text="Questions:" />
  18.  
  19.     <Button
  20.  
  21.        android:id="@+id/btn1"
  22.  
  23.        android:layout_width="wrap_content"
  24.        android:layout_height="wrap_content"
  25.        android:layout_gravity="center_horizontal"
  26.        android:layout_marginTop="20dp"
  27.        android:text="Choice 1" />
  28.  
  29.     <Button
  30.        android:id="@+id/btn2"
  31.        android:layout_width="wrap_content"
  32.        android:layout_height="wrap_content"
  33.        android:layout_gravity="center_horizontal"
  34.        android:layout_marginTop="20dp"
  35.        android:text="Choice 2" />
  36.  
  37.     <Button
  38.        android:id="@+id/btn3"
  39.        android:layout_width="wrap_content"
  40.        android:layout_height="wrap_content"
  41.        android:layout_gravity="center_horizontal"
  42.        android:layout_marginTop="20dp"
  43.        android:text="Choice 3" />
  44.  
  45.     <TextView
  46.       android:id="@+id/tvscore"
  47.        android:layout_width="match_parent"
  48.        android:layout_height="wrap_content"
  49.        android:layout_gravity="center_horizontal"
  50.        android:layout_marginTop="20dp"
  51.        android:text="Score"
  52.        android:textSize="24dp"/>
  53.  
  54.  
  55. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement