瀏覽代碼

1.修改dialog布局中部分button的圆角保持一致。

20241218TB223FC(测试jar包)
wangwanlei 9 月之前
父節點
當前提交
110fbef054

+ 21
- 8
app/src/main/res/layout/layout_changecode_dialog.xml 查看文件

@@ -2,6 +2,7 @@
2 2
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
     android:layout_width="355dp"
4 4
     android:layout_height="wrap_content"
5
+    xmlns:app="http://schemas.android.com/apk/res-auto"
5 6
     android:background="@drawable/shape_whiteradiu_bg"
6 7
     android:gravity="center_horizontal"
7 8
     android:minHeight="333dp"
@@ -175,16 +176,28 @@
175 176
                     android:textColor="#339DFF"
176 177
                     android:textSize="17sp" />
177 178
 
178
-                <TextView
179
-                    android:id="@+id/dialog_enter_tv"
179
+                <FrameLayout
180 180
                     android:layout_width="147dp"
181 181
                     android:layout_height="40dp"
182
-                    android:layout_marginLeft="17dp"
183
-                    android:background="@drawable/icon_login"
184
-                    android:gravity="center"
185
-                    android:text="@string/enter"
186
-                    android:textColor="@color/white"
187
-                    android:textSize="17sp" />
182
+                    android:layout_marginLeft="17dp">
183
+
184
+                    <com.makeramen.roundedimageview.RoundedImageView
185
+                        android:layout_width="147dp"
186
+                        android:layout_height="40dp"
187
+                        android:gravity="center"
188
+                        android:scaleType="centerCrop"
189
+                        android:src="@drawable/icon_login"
190
+                        app:riv_corner_radius="10dp" />
191
+
192
+                    <TextView
193
+                        android:id="@+id/dialog_enter_tv"
194
+                        android:layout_width="147dp"
195
+                        android:layout_height="40dp"
196
+                        android:gravity="center"
197
+                        android:text="@string/enter"
198
+                        android:textColor="@color/white"
199
+                        android:textSize="17sp" />
200
+                </FrameLayout>
188 201
             </LinearLayout>
189 202
         </LinearLayout>
190 203
     </androidx.core.widget.NestedScrollView>

+ 21
- 8
app/src/main/res/layout/layout_edit_dialog.xml 查看文件

@@ -2,6 +2,7 @@
2 2
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3 3
     android:layout_width="353dp"
4 4
     android:layout_height="185dp"
5
+    xmlns:app="http://schemas.android.com/apk/res-auto"
5 6
     android:gravity="center_horizontal"
6 7
     android:background="@drawable/shape_whiteradiu_bg"
7 8
     android:orientation="vertical">
@@ -55,15 +56,27 @@
55 56
             android:textColor="#339DFF"
56 57
             android:textSize="17sp" />
57 58
 
58
-        <TextView
59
-            android:id="@+id/dialog_enter_tv"
59
+        <FrameLayout
60 60
             android:layout_width="147dp"
61 61
             android:layout_height="40dp"
62
-            android:layout_marginLeft="17dp"
63
-            android:background="@drawable/icon_login"
64
-            android:gravity="center"
65
-            android:text="@string/enter"
66
-            android:textColor="@color/white"
67
-            android:textSize="17sp" />
62
+            android:layout_marginLeft="17dp">
63
+
64
+            <com.makeramen.roundedimageview.RoundedImageView
65
+                android:layout_width="147dp"
66
+                android:layout_height="40dp"
67
+                android:gravity="center"
68
+                android:scaleType="centerCrop"
69
+                android:src="@drawable/icon_login"
70
+                app:riv_corner_radius="10dp" />
71
+
72
+            <TextView
73
+                android:id="@+id/dialog_enter_tv"
74
+                android:layout_width="147dp"
75
+                android:layout_height="40dp"
76
+                android:gravity="center"
77
+                android:text="@string/enter"
78
+                android:textColor="@color/white"
79
+                android:textSize="17sp" />
80
+        </FrameLayout>
68 81
     </LinearLayout>
69 82
 </LinearLayout>

+ 0
- 1
app/src/main/res/layout/layout_twobtn_dialog.xml 查看文件

@@ -55,7 +55,6 @@
55 55
                 android:gravity="center"
56 56
                 android:scaleType="centerCrop"
57 57
                 android:src="@drawable/icon_login"
58
-
59 58
                 app:riv_corner_radius="10dp" />
60 59
 
61 60
             <TextView

Loading…
取消
儲存