[GUIDE] AOKP like toggles [UPDATE]

Search This thread

GSculerlor

Senior Member
Oct 23, 2013
441
89
Malang
[quote name="giew13" post=51148241]look great sir
will try it :D

Does it possible if we make it with lidroid-res.apk?

Sent from GT-S5302 using Evilluminious Droidblast[/QUOTE]
I think its possible. But your notification layout will show lidroid toggle

Sent from my GT-S5360 using xda app-developers app
 

MuSaddiq

Senior Member
Aug 24, 2013
652
946
Ohk, I think all smali files from quick panel i think ?

You have to take smali files of quickpanel from this directory... smali/com/android/systemui/statusbar/quickpanel... and then add the ids in the ids.xml then recompile and decompile back and then using the public.xml of samsung systemui for fixing the const ids in the smali files and then add the layout.. :D
 

nightwalker

Senior Member
Mar 23, 2013
697
336
25
Uttar Pradesh>Meerut
You have to take smali files of quickpanel from this directory... smali/com/android/systemui/statusbar/quickpanel... and then add the ids in the ids.xml then recompile and decompile back and then using the public.xml of samsung systemui for fixing the const ids in the smali files and then add the layout.. :D
Hmm... I was able to do it before your this comment.
Thanks a lot bro.
 

ScarabeusIV

Member
Feb 15, 2014
20
1
Is it possible to do it in CM7?
Because i don't see quickpanel_quick_settings.xml in decompiled SystemUI.
 

mariozawa

Senior Member
Jul 1, 2012
443
1,015
Malolos, Bulacan
www.facebook.com
Is it possible to do it in CM7?
Because i don't see quickpanel_quick_settings.xml in decompiled SystemUI.
Its possible in CM.
See my SS. I will release it once I have a solution on porting it easily.

http://xdaforums.com/showpost.php?p=50732620&postcount=2084
http://xdaforums.com/showpost.php?p=50011989&postcount=2073

And about porting stock Touchwiz Toggles to CM just like @MuSaddiq says you need to compare the id values from stock QuickSettings smali files to your ids . I already made that about a year ago but I got FC in wifi toggle hehe.
 
  • Like
Reactions: MuSaddiq

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    Hey Guys, In this guide I am going to show you how to make the stock statusbar toggles look like AOKP toggles.


    Preview:

    mwco.png
    z3xr.png



    Requirements:

    SystemUI.apk from your ROM
    Know how to decompile/recompile


    If you want your toggles to be like how they are in the 1st preview then follow the 1st method
    or
    If you want your toggles to be like how they are in the 2nd preview then follow the 2nd method



    Let's start

    1. Decompile your SystemUI.apk

    2. Go to res/layout/
    Open quickpanel_quick_settings.xml

    1st Method
    3. Replace the whole code with this code

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="horizontal" android:id="@id/quickpanel_quick_settings" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
            <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip">
                <FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
                    <ImageView android:id="@id/quickpanel_wifi_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_wifi_off" android:scaleType="fitXY" />
                    <com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_wifi_text" />
                </FrameLayout>
                <ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
                <FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
                    <ImageView android:id="@id/quickpanel_data_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_data_off" android:scaleType="fitXY" />
                    <com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_dc_text" />
                </FrameLayout>
                <ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
                <FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
                    <ImageView android:id="@id/quickpanel_bt_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_bluetooth_off" android:scaleType="fitXY" />
                    <com.android.systemui.statusbar.quickpanel.BluetoothSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_bt_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_bluetooth_text" />
                </FrameLayout>
                <ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
                <FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
                    <ImageView android:id="@id/quickpanel_gps_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_gps_off" android:scaleType="fitXY" />
                    <com.android.systemui.statusbar.quickpanel.GpsSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_gps_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_gps_text" />
                </FrameLayout>
                <ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
                <FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
                    <ImageView android:id="@id/quickpanel_rotation_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_rotation_off" android:scaleType="fitXY" />
                    <com.android.systemui.statusbar.quickpanel.AutoRotationSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_rotation_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_rotation_text" />
                </FrameLayout>
                <ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
                <FrameLayout android:layout_width="fill_parent" android:layout_height="30.0px" android:layout_marginLeft="5.0dip" android:layout_marginRight="5.0dip" android:layout_weight="1.0">
                    <ImageView android:id="@id/quickpanel_sound_btn_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/quickpanel_icon_sound_on_on" android:scaleType="fitXY" />
                    <com.android.systemui.statusbar.quickpanel.SoundSettingButton android:textSize="13.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="left" android:id="@id/quickpanel_sound_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingLeft="50.0dip" android:paddingTop="10.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_silent_text" />
                </FrameLayout>
                <ImageView android:background="#1fffffff" android:layout_width="fill_parent" android:layout_height="0.5dip" />
            </LinearLayout>
        </LinearLayout>
    </com.android.systemui.statusbar.quickpanel.QuickSettingsView>

    4. Go to res/drawable-ldpi and delete these files

    Code:
    quickpanel_icon_bluetooth_off
    quickpanel_icon_bluetooth_on
    quickpanel_icon_data_off
    quickpanel_icon_data_on
    quickpanel_icon_gps_off
    quickpanel_icon_gps_on
    quickpanel_icon_rotation_off
    quickpanel_icon_rotation_on
    quickpanel_icon_silent_off
    quickpanel_icon_sound_on_on
    quickpanel_icon_sound_vibration_on
    quickpanel_icon_vibration_off
    quickpanel_icon_wifi_off
    quickpanel_icon_wifi_on

    5. Download Sys_Resources.zip
    Extarct it and copy all the files to res/drawable-ldpi


    2nd method
    3. Replace the whole code with this code

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <com.android.systemui.statusbar.quickpanel.QuickSettingsView android:orientation="horizontal" android:id="@id/quickpanel_quick_settings" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0"
      xmlns:android="http://schemas.android.com/apk/res/android">
        <LinearLayout android:orientation="vertical" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="wrap_content">
            <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
                <FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
                    <ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_wifi_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_wifi_off" />
                    <com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_wifi_text" />
                </FrameLayout>
                <FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
                    <ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_data_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_data_off" />
                    <com.android.systemui.statusbar.quickpanel.DataConnectionSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_data_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_dc_text" />
                </FrameLayout>
            </LinearLayout>
            <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
                <FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
                    <ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_bt_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_bluetooth_off" />
                    <com.android.systemui.statusbar.quickpanel.BluetoothSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_bt_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_bluetooth_text" />
                </FrameLayout>
                <FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
                    <ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_gps_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_gps_off" />
                    <com.android.systemui.statusbar.quickpanel.GpsSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_gps_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_gps_text" />
                </FrameLayout>
            </LinearLayout>
            <LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
                <FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
                    <ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_rotation_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_rotation_off" />
                    <com.android.systemui.statusbar.quickpanel.AutoRotationSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_rotation_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_rotation_text" />
                </FrameLayout>
                <FrameLayout android:layout_width="wrap_content" android:layout_height="40.0dip" android:layout_weight="1.0">
                    <ImageView android:layout_gravity="center_horizontal" android:id="@id/quickpanel_sound_btn_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:src="@drawable/quickpanel_icon_sound_on_on" />
                    <com.android.systemui.statusbar.quickpanel.SoundSettingButton android:textSize="0.0dip" android:textStyle="normal" android:textColor="#ffffffff" android:gravity="center" android:id="@id/quickpanel_sound_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="0.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/quickpanel_silent_text" />
                </FrameLayout>
            </LinearLayout>
        </LinearLayout>
    </com.android.systemui.statusbar.quickpanel.QuickSettingsView>

    4. Go to res/drawable-ldpi and delete these files

    Code:
    quickpanel_icon_bluetooth_off
    quickpanel_icon_bluetooth_on
    quickpanel_icon_data_off
    quickpanel_icon_data_on
    quickpanel_icon_gps_off
    quickpanel_icon_gps_on
    quickpanel_icon_rotation_off
    quickpanel_icon_rotation_on
    quickpanel_icon_silent_off
    quickpanel_icon_sound_on_on
    quickpanel_icon_sound_vibration_on
    quickpanel_icon_vibration_off
    quickpanel_icon_wifi_off
    quickpanel_icon_wifi_on

    5. Download Sys_Resources1.zip
    Extarct it and copy all the files to res/drawable-ldpi


    6. Recompile your SystemUI.apk
    Push it into system/app
    Set proper permissions(rw-r--r--)


    If you want to move the toggles then follow this guide by @mariozawa


    Credits:

    b16h22
    2
    Nice,i think its cooler when you make a all in one thread for all your guides so its easy to find one,thanx anyway.:thumbup:

    MANY GREEEETZ!!!
    1
    Looks like OP is on Fire ..Great work buddy ..

    Good to see you on our team(GFX bandits) ;)
    1
    Looks like OP is on Fire ..Great work buddy ..

    Good to see you on our team(GFX bandits) ;)

    +1 :p


    Nice work M.S :)
    1
    Is it possible to do it in CM7?
    Because i don't see quickpanel_quick_settings.xml in decompiled SystemUI.
    Its possible in CM.
    See my SS. I will release it once I have a solution on porting it easily.

    http://xdaforums.com/showpost.php?p=50732620&postcount=2084
    http://xdaforums.com/showpost.php?p=50011989&postcount=2073

    And about porting stock Touchwiz Toggles to CM just like @MuSaddiq says you need to compare the id values from stock QuickSettings smali files to your ids . I already made that about a year ago but I got FC in wifi toggle hehe.