style: 列表搜索区下拉框 placeholder 字体与输入框统一为 13sp

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-08 19:29:04 +08:00
parent 9ff3bbbefc
commit 8d70d6aaee
2 changed files with 29 additions and 2 deletions

View File

@@ -81,13 +81,15 @@ class PadSearchLayout : LinearLayout {
et.hint = value et.hint = value
tv.hint = value tv.hint = value
bindAdapter(spinner, list, hint) // 下拉占位/选项字体与搜索输入框 hint(13sp) 保持一致
bindAdapter(spinner, list, hint, R.layout.item_spinner_list_13sp)
} }
var list = emptyList<KeyValue>() var list = emptyList<KeyValue>()
set(value) { set(value) {
field = value field = value
bindAdapter(spinner, value, hint) // 下拉占位/选项字体与搜索输入框 hint(13sp) 保持一致
bindAdapter(spinner, value, hint, R.layout.item_spinner_list_13sp)
onValueSet() onValueSet()
} }

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2006 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/text1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:textAppearance="?android:attr/textAppearanceListItemSmall"
android:textSize="13sp" />