From 37c7f80497ef017142c73416eecb75d168cd9a47 Mon Sep 17 00:00:00 2001 From: Super12138 <70494801+Super12138@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:56:25 +0800 Subject: [PATCH] Update space of components --- .../super12138/todo/views/todo/ToDoFragment.kt | 18 +++++++++--------- app/src/main/res/layout/dialog_add_todo.xml | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/cn/super12138/todo/views/todo/ToDoFragment.kt b/app/src/main/kotlin/cn/super12138/todo/views/todo/ToDoFragment.kt index 4e0fa6e..f0c85f1 100644 --- a/app/src/main/kotlin/cn/super12138/todo/views/todo/ToDoFragment.kt +++ b/app/src/main/kotlin/cn/super12138/todo/views/todo/ToDoFragment.kt @@ -97,15 +97,15 @@ class ToDoFragment : Fragment() { } else { val randomUUID = UUID.randomUUID().toString() val todoSubject = when (ToDoDialogBinding.todoSubject.checkedChipId) { - R.id.subject_chinese -> "语文" - R.id.subject_math -> "数学" - R.id.subject_english -> "英语" - R.id.subject_biology -> "生物" - R.id.subject_geography -> "地理" - R.id.subject_history -> "历史" - R.id.subject_physics -> "物理" - R.id.subject_law -> "道法" - else -> "未知" + R.id.subject_chinese -> getString(R.string.subject_chinese) + R.id.subject_math -> getString(R.string.subject_math) + R.id.subject_english -> getString(R.string.subject_english) + R.id.subject_biology -> getString(R.string.subject_biology) + R.id.subject_geography -> getString(R.string.subject_geography) + R.id.subject_history -> getString(R.string.subject_history) + R.id.subject_physics -> getString(R.string.subject_physics) + R.id.subject_law -> getString(R.string.subject_law) + else -> getString(R.string.subject_unknown) } // 显示RecyclerView diff --git a/app/src/main/res/layout/dialog_add_todo.xml b/app/src/main/res/layout/dialog_add_todo.xml index d35a0c4..20526e2 100644 --- a/app/src/main/res/layout/dialog_add_todo.xml +++ b/app/src/main/res/layout/dialog_add_todo.xml @@ -21,6 +21,7 @@ android:gravity="center_horizontal" android:hint="@string/tasks_textfield_hint" app:errorEnabled="true" + app:helperText=" " app:helperTextEnabled="true">