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:
@@ -14,7 +14,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardCornerRadius="?attr/borderCornerRadius"
|
||||
app:cardElevation="5dp"
|
||||
app:cardUseCompatPadding="true"
|
||||
android:elevation="5dp"
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardCornerRadius="?attr/borderCornerRadius"
|
||||
app:cardElevation="5dp"
|
||||
app:cardUseCompatPadding="true"
|
||||
android:elevation="5dp"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardCornerRadius="?attr/borderCornerRadius"
|
||||
app:cardElevation="5dp"
|
||||
app:cardUseCompatPadding="true"
|
||||
android:elevation="5dp"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:layout_gravity="center"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:cardCornerRadius="12dp"
|
||||
app:cardCornerRadius="?attr/borderCornerRadius"
|
||||
app:cardElevation="5dp"
|
||||
app:cardUseCompatPadding="true"
|
||||
android:elevation="5dp"
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
<cc.winboll.studio.mymessagemanager.views.SMSView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
app:cardCornerRadius="12dp"
|
||||
android:padding="2dp"
|
||||
app:cardCornerRadius="?attr/borderCornerRadius"
|
||||
app:cardElevation="5dp"
|
||||
app:cardUseCompatPadding="true"
|
||||
android:elevation="5dp"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp" android:background="@drawable/bg_container_border">
|
||||
android:padding="6dp" android:background="@drawable/bg_container_border">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user