[MOD][GUIDE]Merge Wi-Fi and Mobile data Icon with Signal Icon on Statusbar

AmniX

Senior Member
Jul 9, 2012
350
2,903
0
India
Hello floks! Whats up?

You all Must be know about my Xperia-Z-ized ROM.

WHAT! You Don't Know? So Check it NOW :D

Well Here i am Gonna Share one of my work and a friendly guide for all the developers too.

But What is that work? The work is to merge WiFi Signal and Mobile DATA icon with Mobile Signal icon.

Didnt get it? See it yourself here!





GOT it Now?

Not yet? Dude, go 'N' Watch POGO! -_-


-:DOWNLOADS:-

1.Touch Wizard Theme

2.Xperia-Z-ized Theme

3.Elegant Theme


This Will Work on any ROM, Custom or Stock but only for TW, No for CM

If you like it, then Hit Thanks or Buy me a coffee.
 

Attachments

Last edited:

AmniX

Senior Member
Jul 9, 2012
350
2,903
0
India
If You are a developer and want to port this mod with your Existing Moded systemUI resources then Follow this Guide.
Requirements-1. Apktool(official or custom- - Use Google)
2. Notepad++(Use Google Again)
3.A Active Mind :laugh:

Steps to port!
1.First of all download my MOD from First post(for png resources)
2.Decompile your SystemUI.apk(I dont know how nor ask me -_- )
3.After Decompilation complete, Go to res/layouts/signal_cluster_view.xml. Here you will find these codes.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    [COLOR="Blue"]<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
        <ImageView android:layout_gravity="center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    </FrameLayout>[/COLOR]
    [COLOR="Yellow"]<FrameLayout android:gravity="center" android:id="@id/ethernet_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:id="@id/ethernet_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
        <ImageView android:layout_gravity="center" android:id="@id/ethernet_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    </FrameLayout>[/COLOR]
    <View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
        [COLOR="Red"]<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content">
            <ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            <ImageView android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </FrameLayout>[/COLOR]
        <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
            [COLOR="Lime"]<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
                <ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </FrameLayout>[/COLOR]
        </FrameLayout>
    </LinearLayout>
    <ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
<--Let me explain About these codes-->
Blue text is for Wi-Fi Signal icons
Yellow text indicate ethernet icon which our device doesn't support.
Red text is for Mobile DATA icon
Green text is for Mobile Signal icons

5.Now let me tell you, Samsung use same inout indicators for Wifi And Mobile Data so we have to mod them both.

6.Here is my moded codes. You will understand them, Just look into text colour's

Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content"
  xmlns:android="http://schemas.android.com/apk/res/android">
    [COLOR="Yellow"]<FrameLayout android:gravity="center" android:id="@id/ethernet_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <ImageView android:id="@id/ethernet_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
        <ImageView android:layout_gravity="center" android:id="@id/ethernet_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
    </FrameLayout>[/COLOR]
    <View android:id="@id/spacer" android:visibility="gone" android:layout_width="6.0dip" android:layout_height="6.0dip" />
    <LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/new_mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
        <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
            [COLOR="Lime"]<FrameLayout android:gravity="center" android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
                <ImageView android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
                <ImageView android:id="@id/mobile_roaming" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            </FrameLayout>[/COLOR]
        </FrameLayout>
        [COLOR="Red"]<FrameLayout android:id="@id/separate_mobile" android:layout_width="wrap_content" android:layout_height="wrap_content">
            <ImageView android:id="@id/separate_mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
            <ImageView android:id="@id/separate_mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </FrameLayout>[/COLOR]
        [COLOR="Blue"]<FrameLayout android:gravity="center" android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="wrap_content">
            <ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:scaleType="center" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
            <ImageView android:layout_gravity="center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
        </FrameLayout>[/COLOR]
    </LinearLayout>
    <ImageView android:id="@id/airplane" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</com.android.systemui.statusbar.SignalClusterView>
You must be understand according to color that how i move these icons!
If need any help you can ask me here.
7.Now put res/drawable-xhdpi folder from my downloaded resources to your decompiled SystemUI.apk, And compile it back.
8.Now Its done, Enjoy.

If you use this in your theme or mod or ROm, Then don't forgot to giva a little credit to me to respect my work.

Thanks,
Regards
-AmniX
 
Last edited:

Cocolopes

Senior Member
Sep 29, 2010
2,346
1,580
0
35
Rosario
Nice!...can you make it for the new 4.4.2 leak based roms? Or maybe make a xposed module ;).

And I there any way to make stock tw notification bar like aosp? I mean, I just want the toggle drawer and in the notification side just nothing...only clock and no toggles...

Edit...I made it myself....thanks for the info.....
 
Last edited:

erljayp

Senior Member
Dec 27, 2012
381
92
0
Error compiling -____-

7.And compile it back.
Can someone please help me? I'm getting this error...

D:\Gadgets\Phone\Samsung Galaxy Note 2\Tools\APKTool\apktool1.5.2>apktool b stock SystemUI1.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\Gadgets\Phone\Samsung Galaxy Note 2\Tools\APKTool\apktool1.5.2\stock\res\layout\system_bar_notification_panel_title.xml:14: error:Error:No resource found that matches the given name (at 'style' with value '@style/SystemBarNotificationText').

and many more after.

Thank you. :)
 

erljayp

Senior Member
Dec 27, 2012
381
92
0
Worked!

I finally had the time to look into it. :)
It already worked. Thank you for the wonderful guide op. :D

-Hurricane v12