Update space of components

This commit is contained in:
Super12138 2024-01-08 20:56:25 +08:00
parent 254d45a02e
commit 37c7f80497
2 changed files with 11 additions and 9 deletions

View file

@ -97,15 +97,15 @@ class ToDoFragment : Fragment() {
} else { } else {
val randomUUID = UUID.randomUUID().toString() val randomUUID = UUID.randomUUID().toString()
val todoSubject = when (ToDoDialogBinding.todoSubject.checkedChipId) { val todoSubject = when (ToDoDialogBinding.todoSubject.checkedChipId) {
R.id.subject_chinese -> "语文" R.id.subject_chinese -> getString(R.string.subject_chinese)
R.id.subject_math -> "数学" R.id.subject_math -> getString(R.string.subject_math)
R.id.subject_english -> "英语" R.id.subject_english -> getString(R.string.subject_english)
R.id.subject_biology -> "生物" R.id.subject_biology -> getString(R.string.subject_biology)
R.id.subject_geography -> "地理" R.id.subject_geography -> getString(R.string.subject_geography)
R.id.subject_history -> "历史" R.id.subject_history -> getString(R.string.subject_history)
R.id.subject_physics -> "物理" R.id.subject_physics -> getString(R.string.subject_physics)
R.id.subject_law -> "道法" R.id.subject_law -> getString(R.string.subject_law)
else -> "未知" else -> getString(R.string.subject_unknown)
} }
// 显示RecyclerView // 显示RecyclerView

View file

@ -21,6 +21,7 @@
android:gravity="center_horizontal" android:gravity="center_horizontal"
android:hint="@string/tasks_textfield_hint" android:hint="@string/tasks_textfield_hint"
app:errorEnabled="true" app:errorEnabled="true"
app:helperText=" "
app:helperTextEnabled="true"> app:helperTextEnabled="true">
<AutoCompleteTextView <AutoCompleteTextView
@ -34,6 +35,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="20dp" android:layout_marginLeft="20dp"
android:layout_marginTop="5dp"
android:layout_marginRight="20dp" android:layout_marginRight="20dp"
app:chipSpacing="5dp" app:chipSpacing="5dp"
app:selectionRequired="true" app:selectionRequired="true"