Browse Source

1.修改网络设置和同步时间的图片大小。

2.隐藏adapter中的网络设置。
20241218TB223FC(测试jar包)
wangwanlei 8 months ago
parent
commit
5f3e3179d7

+ 3
- 0
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt View File

453
                 }
453
                 }
454
             }
454
             }
455
         }
455
         }
456
+        mBinding.netsetLlayout.setOnClickListener {
457
+            startActivity(Intent(Settings.ACTION_WIFI_SETTINGS))
458
+        }
456
         onBackPressedDispatcher.addCallback {
459
         onBackPressedDispatcher.addCallback {
457
             //屏蔽返回键
460
             //屏蔽返回键
458
             Const.backNum++
461
             Const.backNum++

+ 2
- 2
app/src/main/java/com/xhly/manageapp/utils/CustomAppUtils.kt View File

41
             Const.UPDATESTRATEGYPKGNAME,
41
             Const.UPDATESTRATEGYPKGNAME,
42
             AppCompatResources.getDrawable(context,R.drawable.icon_updatestrategy)!!
42
             AppCompatResources.getDrawable(context,R.drawable.icon_updatestrategy)!!
43
         ))
43
         ))
44
-        appList.add(getCusomAppBean(
44
+      /*  appList.add(getCusomAppBean(
45
             context.getString(R.string.netset),
45
             context.getString(R.string.netset),
46
             Const.WIFISEETTINGPKG,
46
             Const.WIFISEETTINGPKG,
47
             AppCompatResources.getDrawable(context,R.drawable.icon_netset)!!
47
             AppCompatResources.getDrawable(context,R.drawable.icon_netset)!!
48
-        ))
48
+        ))*/
49
         return appList
49
         return appList
50
     }
50
     }
51
 
51
 

BIN
app/src/main/res/drawable/icon_wifiset.png View File


+ 6
- 4
app/src/main/res/layout/activity_login.xml View File

167
                 android:orientation="horizontal">
167
                 android:orientation="horizontal">
168
 
168
 
169
                 <ImageView
169
                 <ImageView
170
-                    android:layout_width="11dp"
171
-                    android:layout_height="11dp"
170
+                    android:layout_width="10dp"
171
+                    android:layout_height="10dp"
172
+                    android:layout_marginRight="3dp"
172
                     android:src="@drawable/icon_wifiset" />
173
                     android:src="@drawable/icon_wifiset" />
173
 
174
 
174
                 <TextView
175
                 <TextView
188
                 android:orientation="horizontal">
189
                 android:orientation="horizontal">
189
 
190
 
190
                 <ImageView
191
                 <ImageView
191
-                    android:layout_width="11dp"
192
-                    android:layout_height="11dp"
192
+                    android:layout_width="10dp"
193
+                    android:layout_height="10dp"
194
+                    android:layout_marginRight="3dp"
193
                     android:src="@drawable/icon_synctime" />
195
                     android:src="@drawable/icon_synctime" />
194
 
196
 
195
                 <TextView
197
                 <TextView

+ 24
- 0
app/src/main/res/layout/activity_main.xml View File

141
                 android:textColor="@color/codetipscolor"
141
                 android:textColor="@color/codetipscolor"
142
                 android:textSize="17sp" />
142
                 android:textSize="17sp" />
143
         </LinearLayout>
143
         </LinearLayout>
144
+
145
+        <LinearLayout
146
+            android:id="@+id/netset_llayout"
147
+            android:layout_width="wrap_content"
148
+            android:layout_height="wrap_content"
149
+            android:layout_gravity="bottom|right"
150
+            android:layout_marginRight="10dp"
151
+            android:layout_marginBottom="10dp"
152
+            android:gravity="center"
153
+            android:orientation="horizontal">
154
+
155
+            <ImageView
156
+                android:layout_width="10dp"
157
+                android:layout_height="10dp"
158
+                android:layout_marginRight="3dp"
159
+                android:src="@drawable/icon_wifiset" />
160
+
161
+            <TextView
162
+                android:layout_width="wrap_content"
163
+                android:layout_height="wrap_content"
164
+                android:text="@string/netset"
165
+                android:textColor="#798CB5"
166
+                android:textSize="8sp" />
167
+        </LinearLayout>
144
     </FrameLayout>
168
     </FrameLayout>
145
 </LinearLayout>
169
 </LinearLayout>

Loading…
Cancel
Save