Settings修改记录

本次更新主要涉及博客主题的更换,为读者带来全新的视觉体验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. 更换主题

2. 修改Wifi对话框里的背景
Settings/src/com/android/settings/wifi/WifiDialog.java
protected void onCreate(Bundle savedInstanceState) {
         mView = getLayoutInflater().inflate(R.layout.wifi_dialog, null);
         setView(mView);
-        setInverseBackgroundForced(true);
+        //setInverseBackgroundForced(false); 
         mController = new WifiConfigController(this, mView, mAccessPoint, mEdit);
         super.onCreate(savedInstanceState);
Settings/res/values/themes.xml


 <resources>


-    <style name="Theme.WifiDialog" parent="@*android:style/Theme.Holo.Dialog.Alert">
+    <style name="Theme.WifiDialog" parent="@*android:style/Theme.Holo.Light.Dialog.Alert">


3. 修改VPN设置时提示设置密码
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
        <activity android:name="CredentialStorage"
-                android:theme="@style/Transparent"
                 android:launchMode="singleTop"
             
4. 设置情景模式中字体颜色是黑色
MTK比较坑,默认是使用的是OP01Plugin.apk
所以必须删掉它,才使用Setting里的
--- a/res/layout/audio_profile_item.xml
+++ b/res/layout/audio_profile_item.xml
@@ -13,6 +13,7 @@
         android:orientation="vertical"/>
         <RadioButton
             android:id="@+id/radiobutton"
+            android:textColor="@android:color/black"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_gravity="center"
@@ -33,7 +34,8 @@
             android:singleLine="true"
             android:textAppearance="?android:attr/textAppearanceMedium"
             android:ellipsize="marquee"
-            android:fadingEdge="horizontal" />
+            android:fadingEdge="horizontal"
+            android:textColor="@android:color/black" />


5. 系统使用情景模式源码位置
Z:\T621\mediatek\operator\OP01\packages\apps\Plugins

6. 系统使用定时开关机代码位置
Z:\T621\mediatek\packages\apps\SchedulePowerOnOff

7. 修改“添加账户”的图标
res/xml/settings_headers.xml
<header
            android:id="@+id/account_add"
            android:title="@string/add_account_label"
            android:icon="@drawable/ic_settings_account_add">
        <intent
            android:action="android.settings.ADD_ACCOUNT_SETTINGS"/>
    </header>

7. 修改“添加账户”的theme
AndroidManifest.xml
<activity android:name="com.android.settings.accounts.ChooseAccountActivity"
            android:label="@string/header_add_an_account"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:theme="@android:style/Theme.Holo.Light.DialogWhenLarge"/>
            
8. 修改设置VPN时的弹出框
AndroidManifest.xml
   <activity android:name="CredentialStorage"
                android:theme="@style/Transparent" 删除这一项
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值