You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Category_5/activity_test_setting.xml

42 lines
1.4 KiB

<?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"
android:orientation="vertical"
android:padding="16dp"
tools:context="com.example.activity.TestSettingActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="请选择题目数量" />
<RadioGroup
android:id="@+id/rg_test_num"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/rbtn_num_5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="5道" />
<RadioButton
android:id="@+id/rbtn_num_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="10道" />
</RadioGroup>
<Button
android:id="@+id/btn_start_test"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="开始考试" />
</LinearLayout>