Compare commits

...

2 Commits

Author SHA1 Message Date
721b8c7128 fix: 裁剪首页图标透明留白统一图标视觉大小
出港计重/进港查询/电报解析/进港仓库 4 个图标画布带透明边距,
fitCenter 缩放后比其他图标偏小,裁剪至内容边界使其满幅

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-08 19:39:14 +08:00
8d70d6aaee style: 列表搜索区下拉框 placeholder 字体与输入框统一为 13sp
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-08 19:29:04 +08:00
6 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" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB