Android 台灣中文網

標題: 修改全局字體和下拉欄顏色教程(通用所有安卓機 需root) [打印本頁]

作者: ass21766h    時間: 2012-4-30 00:17
標題: 修改全局字體和下拉欄顏色教程(通用所有安卓機 需root)
本帖最後由 ass21766h 於 2012-5-2 19:58 編輯

1:須要會反編輯http://apk.tw/thread-63928-1-1.html 參考這邊一二樓~

2:手機要會自救 基本上要懂 線上廚房~無限重啟要會自救~

3:手機須root 過 ~

4:2.2和2.3有些不同 2.3下拉欄反編system/app/SystemUI.apk

修改4.0文件的時候只需要安装framework-res.apk就可以了,而且4.0的编輯工具要更新到最新的才能用

要反編SystemUI.apk 須要 ~指令安裝係統編輯器
apktool if twframework-res.apk (安裝指令)
apktool if framework-res.apk  (安裝指令)

apktool d -f SystemUI.apk  (反編指令)

apktool b SystemUI.apk(回編指令)


全局綠色字體 教程如下:

先按開始→執行→輸入”cmd”按enter就會開啟dos的畫面

然後輸入cd\apktool
apktool d -f framework-res.apk  (反編指令)

也可直接修改係統框架apktool d framework-res.apk  (反編指令)這樣也能



apktool b framework-res(回編指令)這邊多一樣 任何apk 一樣只改apk明稱

反编framework.apk。得到framework-res文件夹

找到framework-res\res\values下的style.xml 布局文件

定位到 <style name="Theme">
在它下方添加<item name="textColor">#ffff00ff</item>

ff是100%顏色 ff00ff (它是綠色) 也可改 ffff0000(這樣就是全紅) 顏色碼網路有 六位數


實例:</style>
    <style name="Theme">
<item name="textColor">#ffff00ff</item>
        <item name="colorForeground">@color/bright_foreground_dark</item>
        <item name="colorBackground">@color/transparent</item>
        <item name="backgroundDimAmount">0.6</item>
        <item name="disabledAlpha">0.5</item>

修改後回編 回編後參考教程連結


在來是手機 一級 二級 三級 本文顏色實例 可照我手機顏色修改
my 亞太 i909安卓2.22 反編 注意英文一樣就照文修改

路逕C:\apktool\framework-res\res\values\colors

<?xml version="1.0" encoding="UTF-8"?>
<resources>
    <color name="darker_gray">#ff8600ff</color>
    <color name="white">#ff8600ff</color>
    <color name="black">#00000000</color>
    <color name="transparent">#00000000</color>
    <color name="background_dark">#00000000</color>
    <color name="background_light">#00000000</color>
    <color name="safe_mode_text">#808600ff</color>
    <color name="bright_foreground_dark">#ff00ff00</color>
    <color name="bright_foreground_dark_disabled">#8000ff00</color>
    <color name="bright_foreground_dark_inverse">#ff0000ff</color>
    <color name="dim_foreground_dark">#ffff00ff</color>
    <color name="dim_foreground_dark_disabled">#80ff00ff</color>
    <color name="dim_foreground_dark_inverse">#ffff00ff</color>
    <color name="dim_foreground_dark_inverse_disabled">#80ff00ff</color>
    <color name="hint_foreground_dark">#ff808080</color>
    <color name="bright_foreground_light">#ffff0000</color>
    <color name="bright_foreground_light_inverse">#ffff0000</color>
    <color name="bright_foreground_light_disabled">#80000000</color>
    <color name="dim_foreground_light">#ff8600ff</color>
    <color name="dim_foreground_light_disabled">#808600ff</color>
    <color name="dim_foreground_light_inverse">#ff00ff00</color>
    <color name="dim_foreground_light_inverse_disabled">#80ff00ff</color>
    <color name="hint_foreground_light">#ffff00ff</color>
    <color name="lighter_gray">#ffff0000</color>
    <color name="perms_dangerous_grp_color">#ff8600ff</color>
    <color name="perms_dangerous_perm_color">#ff8600ff</color>
    <color name="shadow">#00000000</color>
    <color name="search_url_text_normal">#ff8600ff</color>
    <item type="color" name="search_url_text_selected">@color/black</item>
    <item type="color" name="search_url_text_pressed">@color/black</item>
    <item type="color" name="search_widget_corpus_item_background">@color/lighter_gray</item>
    <item type="color" name="sliding_tab_text_color_active">@color/black</item>
    <item type="color" name="sliding_tab_text_color_shadow">@color/black</item>
    <color name="unlock_album_image_background_normal">#ff8600ff</color>
    <color name="unlock_album_image_background_focus">#ff8600ff</color>
    <color name="unlock_album_image_background_press">#ff8600ff</color>
    <color name="keyguard_text_color_normal">#ff8600ff</color>
    <color name="keyguard_text_color_unlock">#ffff0000</color>
    <color name="keyguard_text_color_soundoff">#ff8600ff</color>
    <color name="keyguard_text_color_soundon">#ff8600ff</color>
    <color name="keyguard_text_color_decline">#ff8600ff</color>
    <color name="config_defaultNotificationColor">#ff00ff00</color>
</resources>


修改狀態欄字體顏色:  2.2和2.3不同 2.3須反編 system/app/SystemUI.apk

    2.2rom 反編 framework-res.apk,找到res/layout下面的看到ffffffff 修改後面六位 以下是全紅 修改過 當然也可改全綠ffff00ff  或粉紅ff8600ff 可照色碼表改

  注明: 回編後 這邊須要替換文件 就是把以下改的文件替換回原檔


01:status_bar.xml  
</ImageSwitcher>
        <com.android.server.status.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textColor="#ffff0000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textColor="#ffff0000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
        </com.android.server.status.TickerView>
    </LinearLayout>
    <com.android.server.status.DateView android:textSize="16.0sp" android:textStyle="bold" android:textColor="#ffff0000" android:gravity="left|center" android:id="@id/date"


02.status_bar_latest_event_content.xml


TextView android:textSize="18.0sp" android:textStyle="bold" android:textColor="#ffff0000" android:ellipsize="marquee" android:id="@id/title" android:paddingLeft="4.0dip" android:fadingEdge="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
    </LinearLayout>
    <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">紅色ff0000
        <TextView android:textSize="14.0sp" android:textColor="#ffff0000" android:ellipsize="marquee" android:id="@id/text" android:paddingLeft="4.0dip" android:fadingEdge="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_weight="1.0" />
        <android.widget.DateTimeView android:textSize="14.0sp" android:textColor="#ffff0000"

03.status_bar_expanded.xml
<TextView android:textSize="14.0sp" android:textColor="#ffff0000" android:layout_gravity="center_vertical" android:id="@id/clear_all_button" android:background="@drawable/btn_default_small" android:paddingLeft="15.0dip" android:paddingRight="15.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="4.0dip" android:layout_marginBottom="1.0dip" android:text="@string/status_bar_clear_all_button" style="\?android:attr/buttonStyle" />

04.status_bar.xml
  </ImageSwitcher>
        <com.android.server.status.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
            <TextView android:textColor="#ffff0000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
            <TextView android:textColor="#ffff0000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:singleLine="true" />
        </com.android.server.status.TickerView>
    </LinearLayout>
    <com.android.server.status.DateView android:textSize="16.0sp" android:textStyle="bold" android:textColor="#ffff0000" android:gravity="left|center" android:id="@id/date"

我手機以改成全機透明控 2.2要改時間顏色須要修改server.odex 2.3rom在編輯器內應該就能修改 查找我po過的字體顏色教程 以下圖文字體供參考


1335712622792.jpg
登錄/註冊後可看大圖