Quantcast
Channel: xda-developers - Android Themes
Viewing all articles
Browse latest Browse all 4090

[[GUIDE]] Battery/WiFi/Bluetooth/Alarm in Header!

$
0
0
For L Style Header go HERE
For L Style Header[Advanced] go HERE
For Panel Transparency go HERE
For adding L Style Date/Clock View go HERE


Yo Guys! Today I am here with a simple yet detailed guide to add Battery/WiFi/Bluetooth/Alarm icons in header!
This guide is inspired from THIS guide :)

Let's begin.
1.Decompile your SystemUI.apk
2.Merge the attached smalis to the respective directory.
3.Navigate to res/layout and open status_bar_expanded_header.xml[MTK] / tw_status_bar_expanded_header.xml[TouchWiz]

Search for this:
Code:

<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
Now, copy and paste this lines below it:
Code:

  <com.fmd.icons.BluetoothIcon android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    <com.fmd.icons.AlarmIcon android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    <com.fmd.icons.WifiIcon android:layout_width="wrap_content" android:layout_height="wrap_content" />
    <com.fmd.btn.LBatteryBar android:layout_width="22.0dip" android:layout_height="22.0dip" />

Save the XML.
Recompile the UI.

Decompile the Newly Recompiled UI.

Navigate to res/values/ and open publics.xml

Now go to res/smali/com/fmd/btn and open LBatteryBar$1.smali and search for this:
Code:

0x7f020145
Replace it with the id of (from publics.xml):
Code:

<public type="drawable" name="stat_sys_battery_charge"
Now search for
Code:

0x7f02013c
Replace it with the id of (from publics.xml):
Code:

<public type="drawable" name="stat_sys_battery"
Save the smali.
Recompile the UI.
Sign.
Push to system/app with permissions 644.
DONE.
CREDITS

Sir tentenponce
FMD Devs
Jeff Rivera
Aljhun Mejorada Bumaya
Iann's LNotifPanel
Klark Luis Peralta
Van Freniere
Aniruddha_Pathak [For sharing the Guide]
YOU

Regards,
Aniruddha_Pathak.
HIT THANKS IF YOU LIKE MY WORKS!

Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-06-20-12-10-20.png
Views:	N/A
Size:	130.0 KB
ID:	3376338  
Attached Files
File Type: zip smalis.zip - [Click for QR Code] (13.9 KB)

Viewing all articles
Browse latest Browse all 4090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>