fix: SMSView/TTSRuleView 圆角统一为全局属性,修复 CardView 裁剪边框

SMSView/TTSRuleView 的 cardCornerRadius 统一为全局配置:
  - 5 个布局文件 app:cardCornerRadius="12dp" → "?attr/borderCornerRadius"
    (listview_sms / listview_smsrecycle / listview_ttsplayrule
     listview_ttsplayrule_simple / view_smssend)

修复 CardView 裁剪内部 bg_container_border 圆角描边:
  - view_smssend.xml:SMSView(CardView)添加 android:padding="2dp"
    使内部 LinearLayout 的 bg_container_border 描边不被裁剪
  - view_smssend_part1.xml:android:padding 10dp→6dp 与圆角半径对齐
This commit is contained in:
2026-05-09 13:42:39 +08:00
parent 14f0b7c935
commit 222538d259
6 changed files with 7 additions and 6 deletions

View File

@@ -14,7 +14,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardCornerRadius="12dp" app:cardCornerRadius="?attr/borderCornerRadius"
app:cardElevation="5dp" app:cardElevation="5dp"
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:elevation="5dp" android:elevation="5dp"

View File

@@ -55,7 +55,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardCornerRadius="12dp" app:cardCornerRadius="?attr/borderCornerRadius"
app:cardElevation="5dp" app:cardElevation="5dp"
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:elevation="5dp" android:elevation="5dp"

View File

@@ -9,7 +9,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardCornerRadius="12dp" app:cardCornerRadius="?attr/borderCornerRadius"
app:cardElevation="5dp" app:cardElevation="5dp"
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:elevation="5dp" android:elevation="5dp"

View File

@@ -5,7 +5,7 @@
android:layout_gravity="center" android:layout_gravity="center"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:cardCornerRadius="12dp" app:cardCornerRadius="?attr/borderCornerRadius"
app:cardElevation="5dp" app:cardElevation="5dp"
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:elevation="5dp" android:elevation="5dp"

View File

@@ -2,7 +2,8 @@
<cc.winboll.studio.mymessagemanager.views.SMSView <cc.winboll.studio.mymessagemanager.views.SMSView
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
app:cardCornerRadius="12dp" android:padding="2dp"
app:cardCornerRadius="?attr/borderCornerRadius"
app:cardElevation="5dp" app:cardElevation="5dp"
app:cardUseCompatPadding="true" app:cardUseCompatPadding="true"
android:elevation="5dp" android:elevation="5dp"

View File

@@ -5,7 +5,7 @@
android:orientation="vertical" android:orientation="vertical"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:padding="10dp" android:background="@drawable/bg_container_border"> android:padding="6dp" android:background="@drawable/bg_container_border">
<TextView <TextView
android:layout_width="match_parent" android:layout_width="match_parent"