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:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- tools:context=".MainActivity">
- <TextView
- android:id="@+id/textView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Try answer some questions"
- android:textAlignment="textStart"
- android:textSize="24sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvScore"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="end"
- android:layout_marginTop="16dp"
- android:layout_marginEnd="16dp"
- android:background="#FFEB3B"
- android:text="Score: 0"
- android:textAlignment="center"
- android:textColor="#EB3131"
- android:textSize="34sp"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/tvQuestion"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_marginTop="16dp"
- android:background="#DDF6C0"
- android:text="TextView"
- android:textAlignment="center"
- android:textSize="48sp"
- android:textStyle="bold" />
- <RadioGroup
- android:id="@+id/rgOptions"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp">
- <RadioButton
- android:id="@+id/rbtn1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:text="RadioButton"
- android:textSize="24sp" />
- <RadioButton
- android:id="@+id/rbtn2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:text="RadioButton"
- android:textSize="24sp" />
- <RadioButton
- android:id="@+id/rbtn3"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:text="RadioButton"
- android:textSize="24sp" />
- </RadioGroup>
- <Button
- android:id="@+id/btnCheck"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="16dp"
- android:text="check my answer" />
- <TextView
- android:id="@+id/textView2"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1" />
- <Button
- android:id="@+id/btnStartAgain"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:layout_margin="16dp"
- android:text="Start again" />
- </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement