Sunday, February 28, 2016

[GUIDE] Theming SystemUI(StatusBar (Adding custom background and adding analog clock)

Hello guys!! Im new here!

My tutorial helps you modifying status bar (sytemui)
-Expanding status bar
-Adding background image
-Adding analog clock

Tools needed:
Apktool (I recommend apktool 4.4) :)
Root Explorer :)
920 Text Editor :)



_______________________________________________

Let's start

1st
Open Root Explorer
Go to /system/framework/ and copy framework-res.apk to folder /mnt/sdcard0/apktool/a/

2nd
Open apktool
Go to /mnt/sdcard0/apktool/a/ and click framework then "decompile resources" wait until it finishes.

3rd
Open Root Explorer
Go to your decompiled framework and open
"Framework-res_src/values" and open "dimens.xml"

4th
Find status_bar_height and change 25.0dip to 50.dip

5th
Recompile, sign, push!!
Your status bar was expanded!!:laugh::laugh:


__________________________________________________ _

Adding custom background image on your status

Same tools.

1st
Just copy your systemUi.apk from system/app
And paste to same place where you paste your framework.

2nd
Go to SystemUI_src/res/layout/ and open (gemini_status_bar.xml on mediatek devices) (status_bar.xml on other devices) (tw_status_bar.xml or tw_status_bar_dual.xml on samsung devices)

Copy this code and paste in line 5:
<RelativeLayout android:orientation="horizontal" android:id="@id/statbg" android:background="@drawable/stat_bg" android:layout_width="fill_parent" android:layout_height="50.0dip" />

Go to res/values/ids.xml and paste this code anywhere.
<item type="id" name="statbg">false</item>

And paste your desired background on drawable-hdpidrawable-hdpi and name it with "stat_bg.png"


3rd
Recompile, sign, push!! Your status_bar has now custom background image.

Adding analog clock is on next tutorial... ;)


from xda-developers http://ift.tt/1KUbz6E
via IFTTT

No comments:

Post a Comment