Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Step1-Comp
<?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"
tools:context=".MainActivity"
android:gravity="center_horizontal"
android:orientation="vertical">
<TextView
android:id="@+id/countLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Q1"
android:textSize="22sp"
android:layout_marginTop="30dp"/>
<TextView
android:id="@+id/questionLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Question"
android:textSize="24sp"
android:layout_marginTop="60dp"/>
<Button
android:id="@+id/answerBtn1"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="answer1"
android:layout_marginTop="80dp"
android:onClick="checkAnswer"/>
<Button
android:id="@+id/answerBtn2"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="answer2"
android:layout_marginTop="6dp"
android:onClick="checkAnswer"/>
<Button
android:id="@+id/answerBtn3"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="answer3"
android:layout_marginTop="6dp"
android:onClick="checkAnswer"/>
<Button
android:id="@+id/answerBtn4"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="answer4"
android:layout_marginTop="6dp"
android:onClick="checkAnswer"/>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.