Selaa lähdekoodia

1.修改button背景。

20241218TB223FC(测试jar包)
wangwanlei 8 kuukautta sitten
vanhempi
commit
6b096f1155

+ 22
- 9
app/src/main/res/layout/activity_login.xml Näytä tiedosto

@@ -44,9 +44,9 @@
44 44
                     android:layout_width="wrap_content"
45 45
                     android:layout_height="37dp"
46 46
                     android:src="@drawable/ic_manageapp_launcher"
47
+                    app:layout_constraintHorizontal_chainStyle="packed"
47 48
                     app:layout_constraintLeft_toLeftOf="parent"
48 49
                     app:layout_constraintRight_toLeftOf="@id/logo_tv"
49
-                    app:layout_constraintHorizontal_chainStyle="packed"
50 50
                     app:layout_constraintTop_toTopOf="parent" />
51 51
 
52 52
                 <TextView
@@ -133,18 +133,32 @@
133 133
                     app:layout_constraintRight_toRightOf="parent"
134 134
                     app:layout_constraintTop_toBottomOf="@id/code_et" />
135 135
 
136
-                <Button
136
+                <FrameLayout
137 137
                     android:id="@+id/login_btn"
138 138
                     android:layout_width="387dp"
139 139
                     android:layout_height="49dp"
140 140
                     android:layout_marginTop="279dp"
141
-                    android:background="@drawable/icon_login"
142
-                    android:text="@string/loginnow"
143
-                    android:textColor="@color/white"
144
-                    android:textSize="21sp"
145 141
                     app:layout_constraintLeft_toLeftOf="parent"
146 142
                     app:layout_constraintRight_toRightOf="parent"
147
-                    app:layout_constraintTop_toTopOf="parent" />
143
+                    app:layout_constraintTop_toTopOf="parent">
144
+
145
+                    <com.makeramen.roundedimageview.RoundedImageView
146
+                        android:layout_width="match_parent"
147
+                        android:layout_height="match_parent"
148
+                        android:src="@drawable/icon_login"
149
+                        app:riv_corner_radius_bottom_left="12dp"
150
+                        app:riv_corner_radius_bottom_right="12dp"
151
+                        app:riv_corner_radius_top_left="12dp"
152
+                        app:riv_corner_radius_top_right="12dp" />
153
+
154
+                    <TextView
155
+                        android:layout_width="match_parent"
156
+                        android:layout_height="match_parent"
157
+                        android:gravity="center"
158
+                        android:text="@string/loginnow"
159
+                        android:textColor="@color/white"
160
+                        android:textSize="21sp" />
161
+                </FrameLayout>
148 162
             </androidx.constraintlayout.widget.ConstraintLayout>
149 163
         </androidx.core.widget.NestedScrollView>
150 164
 
@@ -212,8 +226,7 @@
212 226
         android:background="@drawable/main_bg"
213 227
         android:gravity="center_horizontal"
214 228
         android:orientation="vertical"
215
-        android:visibility="gone"
216
-        >
229
+        android:visibility="gone">
217 230
 
218 231
         <ImageView
219 232
             android:layout_width="157dp"

+ 30
- 6
app/src/main/res/layout/layout_notice_dialog.xml Näytä tiedosto

@@ -51,13 +51,37 @@
51 51
             </androidx.appcompat.widget.LinearLayoutCompat>
52 52
         </androidx.core.widget.NestedScrollView>
53 53
 
54
-        <Button
55
-            android:id="@+id/dialog_close_btn"
54
+        <!-- <Button
55
+             android:id="@+id/dialog_close_btn"
56
+             android:layout_width="350dp"
57
+             android:layout_height="49dp"
58
+             android:layout_marginBottom="10dp"
59
+             android:background="@drawable/icon_login"
60
+             android:text="@string/close"
61
+             android:textColor="@color/white" />-->
62
+        <FrameLayout
56 63
             android:layout_width="350dp"
57 64
             android:layout_height="49dp"
58
-            android:layout_marginBottom="10dp"
59
-            android:background="@drawable/icon_login"
60
-            android:text="@string/close"
61
-            android:textColor="@color/white" />
65
+            android:layout_marginBottom="10dp">
66
+
67
+            <com.makeramen.roundedimageview.RoundedImageView
68
+                android:layout_width="match_parent"
69
+                android:layout_height="match_parent"
70
+                android:src="@drawable/icon_login"
71
+                app:riv_corner_radius_bottom_left="12dp"
72
+                app:riv_corner_radius_bottom_right="12dp"
73
+                app:riv_corner_radius_top_left="12dp"
74
+                app:riv_corner_radius_top_right="12dp" />
75
+
76
+            <Button
77
+                android:id="@+id/dialog_close_btn"
78
+                android:layout_width="match_parent"
79
+                android:layout_height="match_parent"
80
+                android:background="#00000000"
81
+                android:gravity="center"
82
+                android:text="@string/close"
83
+                android:textColor="@color/white"
84
+                android:textSize="18sp" />
85
+        </FrameLayout>
62 86
     </LinearLayout>
63 87
 </androidx.constraintlayout.widget.ConstraintLayout>

+ 26
- 2
app/src/main/res/layout/layout_sys_notice_dialog.xml Näytä tiedosto

@@ -55,13 +55,37 @@
55 55
             </androidx.appcompat.widget.LinearLayoutCompat>
56 56
         </androidx.core.widget.NestedScrollView>
57 57
 
58
-        <Button
58
+    <!--    <Button
59 59
             android:id="@+id/dialog_close_btn"
60 60
             android:layout_width="350dp"
61 61
             android:layout_height="49dp"
62 62
             android:layout_marginBottom="10dp"
63 63
             android:background="@drawable/icon_login"
64 64
             android:text="@string/close"
65
-            android:textColor="@color/white" />
65
+            android:textColor="@color/white" />-->
66
+        <FrameLayout
67
+            android:layout_width="350dp"
68
+            android:layout_height="49dp"
69
+            android:layout_marginBottom="10dp">
70
+
71
+            <com.makeramen.roundedimageview.RoundedImageView
72
+                android:layout_width="match_parent"
73
+                android:layout_height="match_parent"
74
+                android:src="@drawable/icon_login"
75
+                app:riv_corner_radius_bottom_left="12dp"
76
+                app:riv_corner_radius_bottom_right="12dp"
77
+                app:riv_corner_radius_top_left="12dp"
78
+                app:riv_corner_radius_top_right="12dp" />
79
+
80
+            <Button
81
+                android:id="@+id/dialog_close_btn"
82
+                android:layout_width="match_parent"
83
+                android:layout_height="match_parent"
84
+                android:background="#00000000"
85
+                android:gravity="center"
86
+                android:text="@string/close"
87
+                android:textColor="@color/white"
88
+                android:textSize="18sp" />
89
+        </FrameLayout>
66 90
     </LinearLayout>
67 91
 </androidx.constraintlayout.widget.ConstraintLayout>

Loading…
Peruuta
Tallenna