Browse Source

1.修改button背景。

20241218TB223FC(测试jar包)
wangwanlei 8 months ago
parent
commit
6b096f1155

+ 22
- 9
app/src/main/res/layout/activity_login.xml View File

44
                     android:layout_width="wrap_content"
44
                     android:layout_width="wrap_content"
45
                     android:layout_height="37dp"
45
                     android:layout_height="37dp"
46
                     android:src="@drawable/ic_manageapp_launcher"
46
                     android:src="@drawable/ic_manageapp_launcher"
47
+                    app:layout_constraintHorizontal_chainStyle="packed"
47
                     app:layout_constraintLeft_toLeftOf="parent"
48
                     app:layout_constraintLeft_toLeftOf="parent"
48
                     app:layout_constraintRight_toLeftOf="@id/logo_tv"
49
                     app:layout_constraintRight_toLeftOf="@id/logo_tv"
49
-                    app:layout_constraintHorizontal_chainStyle="packed"
50
                     app:layout_constraintTop_toTopOf="parent" />
50
                     app:layout_constraintTop_toTopOf="parent" />
51
 
51
 
52
                 <TextView
52
                 <TextView
133
                     app:layout_constraintRight_toRightOf="parent"
133
                     app:layout_constraintRight_toRightOf="parent"
134
                     app:layout_constraintTop_toBottomOf="@id/code_et" />
134
                     app:layout_constraintTop_toBottomOf="@id/code_et" />
135
 
135
 
136
-                <Button
136
+                <FrameLayout
137
                     android:id="@+id/login_btn"
137
                     android:id="@+id/login_btn"
138
                     android:layout_width="387dp"
138
                     android:layout_width="387dp"
139
                     android:layout_height="49dp"
139
                     android:layout_height="49dp"
140
                     android:layout_marginTop="279dp"
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
                     app:layout_constraintLeft_toLeftOf="parent"
141
                     app:layout_constraintLeft_toLeftOf="parent"
146
                     app:layout_constraintRight_toRightOf="parent"
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
             </androidx.constraintlayout.widget.ConstraintLayout>
162
             </androidx.constraintlayout.widget.ConstraintLayout>
149
         </androidx.core.widget.NestedScrollView>
163
         </androidx.core.widget.NestedScrollView>
150
 
164
 
212
         android:background="@drawable/main_bg"
226
         android:background="@drawable/main_bg"
213
         android:gravity="center_horizontal"
227
         android:gravity="center_horizontal"
214
         android:orientation="vertical"
228
         android:orientation="vertical"
215
-        android:visibility="gone"
216
-        >
229
+        android:visibility="gone">
217
 
230
 
218
         <ImageView
231
         <ImageView
219
             android:layout_width="157dp"
232
             android:layout_width="157dp"

+ 30
- 6
app/src/main/res/layout/layout_notice_dialog.xml View File

51
             </androidx.appcompat.widget.LinearLayoutCompat>
51
             </androidx.appcompat.widget.LinearLayoutCompat>
52
         </androidx.core.widget.NestedScrollView>
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
             android:layout_width="350dp"
63
             android:layout_width="350dp"
57
             android:layout_height="49dp"
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
     </LinearLayout>
86
     </LinearLayout>
63
 </androidx.constraintlayout.widget.ConstraintLayout>
87
 </androidx.constraintlayout.widget.ConstraintLayout>

+ 26
- 2
app/src/main/res/layout/layout_sys_notice_dialog.xml View File

55
             </androidx.appcompat.widget.LinearLayoutCompat>
55
             </androidx.appcompat.widget.LinearLayoutCompat>
56
         </androidx.core.widget.NestedScrollView>
56
         </androidx.core.widget.NestedScrollView>
57
 
57
 
58
-        <Button
58
+    <!--    <Button
59
             android:id="@+id/dialog_close_btn"
59
             android:id="@+id/dialog_close_btn"
60
             android:layout_width="350dp"
60
             android:layout_width="350dp"
61
             android:layout_height="49dp"
61
             android:layout_height="49dp"
62
             android:layout_marginBottom="10dp"
62
             android:layout_marginBottom="10dp"
63
             android:background="@drawable/icon_login"
63
             android:background="@drawable/icon_login"
64
             android:text="@string/close"
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
     </LinearLayout>
90
     </LinearLayout>
67
 </androidx.constraintlayout.widget.ConstraintLayout>
91
 </androidx.constraintlayout.widget.ConstraintLayout>

Loading…
Cancel
Save