From 8d70d6aaee99c68aea3897ace4ce02132b5e2656 Mon Sep 17 00:00:00 2001 From: YANG JIANKUAN Date: Mon, 8 Jun 2026 19:29:04 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8C=BA=E4=B8=8B=E6=8B=89=E6=A1=86=20placeholder=20=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E4=B8=8E=E8=BE=93=E5=85=A5=E6=A1=86=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E4=B8=BA=2013sp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- .../weight/search/layout/PadSearchLayout.kt | 6 +++-- .../res/layout/item_spinner_list_13sp.xml | 25 +++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 module_base/src/main/res/layout/item_spinner_list_13sp.xml diff --git a/module_base/src/main/java/com/lukouguoji/module_base/ui/weight/search/layout/PadSearchLayout.kt b/module_base/src/main/java/com/lukouguoji/module_base/ui/weight/search/layout/PadSearchLayout.kt index 31d15d4..34cd54b 100644 --- a/module_base/src/main/java/com/lukouguoji/module_base/ui/weight/search/layout/PadSearchLayout.kt +++ b/module_base/src/main/java/com/lukouguoji/module_base/ui/weight/search/layout/PadSearchLayout.kt @@ -81,13 +81,15 @@ class PadSearchLayout : LinearLayout { et.hint = value tv.hint = value - bindAdapter(spinner, list, hint) + // 下拉占位/选项字体与搜索输入框 hint(13sp) 保持一致 + bindAdapter(spinner, list, hint, R.layout.item_spinner_list_13sp) } var list = emptyList() set(value) { field = value - bindAdapter(spinner, value, hint) + // 下拉占位/选项字体与搜索输入框 hint(13sp) 保持一致 + bindAdapter(spinner, value, hint, R.layout.item_spinner_list_13sp) onValueSet() } diff --git a/module_base/src/main/res/layout/item_spinner_list_13sp.xml b/module_base/src/main/res/layout/item_spinner_list_13sp.xml new file mode 100644 index 0000000..4514bd0 --- /dev/null +++ b/module_base/src/main/res/layout/item_spinner_list_13sp.xml @@ -0,0 +1,25 @@ + + +