Default [GUIDE][MOD]Add Quickpanel Button In Statusbar To Switch Layouts>>

Hello Guys,Hope everyone is fine

Quote:
Today iam going to guide you how to add quickpanel button on statusbar to change layouts with cool sliding animation.

First of all this is not my work I would like to thank XDA Recognized Themer @b16h22 For allowing me to make this guide.


So lets start..


1. First of all download the attached files and merge with your SystemUI.apk
2. Now open statusbar.expanded and add these codes on the top lines anywhere where you want the switching button.
Code:
 
  <com.panel.Button android:id="@id/button" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
3 And then add this code anywhere..


Code:
  
                
       <com.panel.Panel android:id="@id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent">
                   <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
                             Your First layout
             </LinearLayout>
                        <LinearLayout android:layout_width="wrap_content" android:layout_height="fill_parent">
                  Your Second Layout
 </LinearLayout>
</com.panel.Panel>

4.Now open ids.xml and add these in the last above resources .

Code:
  <item type="id" name="panel">false</item>
    <item type="id" name="button">false</item>
5.Recompile your SystemUI.apk.
6.Decompile it again.
7.Now open public.xml in values folder
8.Search for panel and copy its id
11.Now open Panel.smali in smali/com/panel/panel and search for 0x7f09004d and replace it with panel id .
12.Similarly,
13.Open public.xml in values folder
14.Search for button and copy its id
15.Now open Button.smali in smali/com/panel/Button and search for 0x7f09004e and replace it with Button id .
16.Also,
17.Open public.xml in values folder
18.Search for btn drawable and copy its id.
19.Now open Button.smali in smali/com/panel/Button and search for 0x7f020190 and replace it with btn id .


20.Now compile your SystemUI.apk
And done.


Screenshots
Attached Files
File Type: rar quickpanel_btn.rar - [Click for QR Code] (5.8 KB, 518 views)