Преглед изворни кода

1.修改ManageActivity页面布局和跳转方式。

2025_1_7x505f
wangwanlei пре 1 месец
родитељ
комит
800de12d15

+ 3
- 2
app/src/main/java/com/xhly/manageapp/ui/login/activity/LoginActivity.kt Прегледај датотеку

@@ -151,11 +151,12 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
151 151
             }
152 152
         }
153 153
         mBinding.ivShowcode.setOnClickListener {
154
-             showCodeNum++
154
+            /* showCodeNum++
155 155
             if (showCodeNum>10){
156 156
                 showCodeNum=0
157 157
                 mBinding.codeLoginIv.visibility=View.VISIBLE
158
-            }
158
+            }*/
159
+            showSettingNum++
159 160
         }
160 161
 
161 162
         mBinding.loginClayout.setOnClickListener {

+ 4
- 0
app/src/main/res/layout/activity_manage.xml Прегледај датотеку

@@ -59,6 +59,7 @@
59 59
 
60 60
 
61 61
                 <androidx.appcompat.widget.AppCompatButton
62
+                    android:visibility="gone"
62 63
                     android:id="@+id/blu_btn"
63 64
                     android:layout_width="0dp"
64 65
                     android:layout_height="80dp"
@@ -86,6 +87,7 @@
86 87
                     android:layout_width="0dp"
87 88
                     android:layout_height="80dp"
88 89
                     android:layout_weight="1"
90
+                    android:visibility="gone"
89 91
                     android:text="wifi开关" />
90 92
             </androidx.appcompat.widget.LinearLayoutCompat>
91 93
 
@@ -171,6 +173,7 @@
171 173
                     android:layout_width="0dp"
172 174
                     android:layout_height="80dp"
173 175
                     android:layout_weight="1"
176
+                    android:visibility="gone"
174 177
                     android:text="获取设备信息" />
175 178
 
176 179
                 <androidx.appcompat.widget.AppCompatButton
@@ -222,6 +225,7 @@
222 225
                     android:layout_width="0dp"
223 226
                     android:layout_height="80dp"
224 227
                     android:layout_weight="1"
228
+                    android:visibility="gone"
225 229
                     android:text="打开关闭下拉" />
226 230
 
227 231
                 <androidx.appcompat.widget.AppCompatButton

Loading…
Откажи
Сачувај