5,595,964 Members 31,955 Now Online
XDA Developers Android and Mobile Development Forum

[MOD][GUIDE] How to move Quickpanel toggle button to bottom

Tip us?
 
d3cka
Old
(Last edited by d3cka; 8th December 2012 at 03:54 PM.)
#1  
d3cka's Avatar
Senior Member - OP
Thanks Meter 326
Posts: 545
Join Date: Jul 2012
Default [MOD][GUIDE] How to move Quickpanel toggle button to bottom

Hi guys...

i just wanna share to you all, this guide about how to move quickpanel toggle button to bottom.

how to do this, u have to decompile SystemUI.apk and edit StatusBarService.smali.

search this code :

Code:
const v7, 0x7f030002

invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v3

.end local v3           #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.line 352
.restart local v3       #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;

invoke-virtual {v7, v3, v12}, Lcom/android/systemui/statusbar/ExpandedView;->addView(Landroid/view/View;I)V
and change mExpandedView & ExpandedView to mCloseView & CloseDragHandle

your new code should be :

Code:
const v7, 0x7f030002

invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

move-result-object v3

.end local v3           #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;

.line 352
.restart local v3       #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mCloseView:Lcom/android/systemui/statusbar/CloseDragHandle;

invoke-virtual {v7, v3, v12}, Lcom/android/systemui/statusbar/CloseDragHandle;->addView(Landroid/view/View;I)V
save and close. now compile your SystemUI.apk.

i hope you like it, and dont forget to press thanks

credit : .x.x.x.Peria@xda


Attached Thumbnails
Click image for larger version

Name:	SC20121208-014252.png
Views:	7143
Size:	17.8 KB
ID:	1544852  
Attached Files
File Type: apk bottom-SystemUI.apk - [Click for QR Code] (180.9 KB, 273 views)
The Following 15 Users Say Thank You to d3cka For This Useful Post: [ Click to Expand ]
 
kentoi me
Old
#3  
kentoi me's Avatar
Senior Member
Thanks Meter 38
Posts: 408
Join Date: Feb 2012
Location: lost city
Wew.. again... spices for my mod.. hitted mr. Op.. thanks a lot...

Sent from my GT-S5360 using xda premium
....waiting for improvement... good job guys and more power..

 
deathnotice01
Old
#4  
deathnotice01's Avatar
Recognized Themer
Thanks Meter 3149
Posts: 8,205
Join Date: Feb 2012
Location: Cebu

 
DONATE TO ME
i dunno what the hell is wrong with my systemui but this does not work for me,
tried changing also the versions in smali codes,
still does not work
Samsung Galaxy S4 LTE (I9505/JFLTEXX)
Acer Iconia W4 (W4-820)
iPhone 4s (MD234LL/A)
Nexus 7 2013 (RAZOR-FLO)
iPad 2 (MC769LL/A)
 
d3cka
Old
#5  
d3cka's Avatar
Senior Member - OP
Thanks Meter 326
Posts: 545
Join Date: Jul 2012
Yeah first time i edit my moded systemui its really confusing and lil bit different. But i try with stock systemui, only those lines will take effect. Maybe u edit the wrong lines. Try again bro.

Sent from my GT-S5360 using xda premium
 
deathnotice01
Old
#6  
deathnotice01's Avatar
Recognized Themer
Thanks Meter 3149
Posts: 8,205
Join Date: Feb 2012
Location: Cebu

 
DONATE TO ME
Quote:
Originally Posted by d3cka View Post
Yeah first time i edit my moded systemui its really confusing and lil bit different. But i try with stock systemui, only those lines will take effect. Maybe u edit the wrong lines. Try again bro.

Sent from my GT-S5360 using xda premium
the lines are correct even b16h22 checked it,
i give up on that thing,

this post is biodegradable,
save the trolls from extinction,
be biodegradable
Samsung Galaxy S4 LTE (I9505/JFLTEXX)
Acer Iconia W4 (W4-820)
iPhone 4s (MD234LL/A)
Nexus 7 2013 (RAZOR-FLO)
iPad 2 (MC769LL/A)
 
shoutokuyaki
Old
#7  
shoutokuyaki's Avatar
Senior Member
Thanks Meter 36
Posts: 356
Join Date: Feb 2012
Where u get this guide?
From temporary grup galyounger?

If yes plis add credit

Sent from my GT-S5360 using xda app-developers app
The Following User Says Thank You to shoutokuyaki For This Useful Post: [ Click to Expand ]
 
deathnotice01
Old
#8  
deathnotice01's Avatar
Recognized Themer
Thanks Meter 3149
Posts: 8,205
Join Date: Feb 2012
Location: Cebu

 
DONATE TO ME
Quote:
Originally Posted by shoutokuyaki View Post
Where u get this guide?
From temporary grup galyounger?

If yes plis add credit

Sent from my GT-S5360 using xda app-developers app
I think a lot of people knew this already,
But evan was the first to make it work

this post is biodegradable,
save the trolls from extinction,
be biodegradable
Samsung Galaxy S4 LTE (I9505/JFLTEXX)
Acer Iconia W4 (W4-820)
iPhone 4s (MD234LL/A)
Nexus 7 2013 (RAZOR-FLO)
iPad 2 (MC769LL/A)
 
d3cka
Old
#9  
d3cka's Avatar
Senior Member - OP
Thanks Meter 326
Posts: 545
Join Date: Jul 2012
Quote:
Originally Posted by shoutokuyaki View Post
Where u get this guide?
From temporary grup galyounger?

If yes plis add credit

Sent from my GT-S5360 using xda app-developers app
No. I search on xda. Im on mobile cant give u the link.

Sent from my GT-S5360 using xda premium
 
shoutokuyaki
Old
#10  
shoutokuyaki's Avatar
Senior Member
Thanks Meter 36
Posts: 356
Join Date: Feb 2012
ok
i respect ur work...

i'am not troll :screwy:

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Fix the Ambient Light Issues on Your Google Nexus 5 using Xposed

The Google Nexus 5 is a great and rather popular device. This LG-produced … more

Google Glass XE16 Update Factory Image and Rooted Bootloader Now Available

You may recall that early yesterday, we talked about the XE16 … more

Add Swipe Utilities to Your App with SimpleFingerGestures Library

Gestures have become an increasingly important element in smartphone UI … more