Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Last active September 18, 2023 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeforfun-jp/986496bdc849e607b01582ce69c559df to your computer and use it in GitHub Desktop.
Save codeforfun-jp/986496bdc849e607b01582ce69c559df to your computer and use it in GitHub Desktop.
Java Quiz - 2023 - 2
<?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"
tools:context=".MainActivity"
android:orientation="vertical"
android:gravity="center">
<TextView
android:id="@+id/countLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/count_label"
android:textSize="22sp" />
<TextView
android:id="@+id/questionLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/question_label"
android:textSize="24sp"
android:layout_marginTop="60dp" />
<Button
android:id="@+id/answerBtn1"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="@string/btn_answer"
android:layout_marginTop="80dp"
style="@style/Widget.Material3.Button.OutlinedButton" />
<Button
android:id="@+id/answerBtn2"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="@string/btn_answer"
android:layout_marginTop="6dp"
style="@style/Widget.Material3.Button.OutlinedButton" />
<Button
android:id="@+id/answerBtn3"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="@string/btn_answer"
android:layout_marginTop="6dp"
style="@style/Widget.Material3.Button.OutlinedButton" />
<Button
android:id="@+id/answerBtn4"
android:layout_width="300dp"
android:layout_height="60dp"
android:text="@string/btn_answer"
android:layout_marginTop="6dp"
style="@style/Widget.Material3.Button.OutlinedButton" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment