Browse Source

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

2025_1_7x505f
wangwanlei 1 month ago
parent
commit
800de12d15

+ 3
- 2
app/src/main/java/com/xhly/manageapp/ui/login/activity/LoginActivity.kt View File

151
             }
151
             }
152
         }
152
         }
153
         mBinding.ivShowcode.setOnClickListener {
153
         mBinding.ivShowcode.setOnClickListener {
154
-             showCodeNum++
154
+            /* showCodeNum++
155
             if (showCodeNum>10){
155
             if (showCodeNum>10){
156
                 showCodeNum=0
156
                 showCodeNum=0
157
                 mBinding.codeLoginIv.visibility=View.VISIBLE
157
                 mBinding.codeLoginIv.visibility=View.VISIBLE
158
-            }
158
+            }*/
159
+            showSettingNum++
159
         }
160
         }
160
 
161
 
161
         mBinding.loginClayout.setOnClickListener {
162
         mBinding.loginClayout.setOnClickListener {

+ 4
- 0
app/src/main/res/layout/activity_manage.xml View File

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

Loading…
Cancel
Save