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,6 +453,9 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
453 453
                 }
454 454
             }
455 455
         }
456
+        mBinding.netsetLlayout.setOnClickListener {
457
+            startActivity(Intent(Settings.ACTION_WIFI_SETTINGS))
458
+        }
456 459
         onBackPressedDispatcher.addCallback {
457 460
             //屏蔽返回键
458 461
             Const.backNum++

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

@@ -41,11 +41,11 @@ class CustomAppUtils {
41 41
             Const.UPDATESTRATEGYPKGNAME,
42 42
             AppCompatResources.getDrawable(context,R.drawable.icon_updatestrategy)!!
43 43
         ))
44
-        appList.add(getCusomAppBean(
44
+      /*  appList.add(getCusomAppBean(
45 45
             context.getString(R.string.netset),
46 46
             Const.WIFISEETTINGPKG,
47 47
             AppCompatResources.getDrawable(context,R.drawable.icon_netset)!!
48
-        ))
48
+        ))*/
49 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,8 +167,9 @@
167 167
                 android:orientation="horizontal">
168 168
 
169 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 173
                     android:src="@drawable/icon_wifiset" />
173 174
 
174 175
                 <TextView
@@ -188,8 +189,9 @@
188 189
                 android:orientation="horizontal">
189 190
 
190 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 195
                     android:src="@drawable/icon_synctime" />
194 196
 
195 197
                 <TextView

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

@@ -141,5 +141,29 @@
141 141
                 android:textColor="@color/codetipscolor"
142 142
                 android:textSize="17sp" />
143 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 168
     </FrameLayout>
145 169
 </LinearLayout>

Loading…
Cancel
Save