5,600,612 Members 32,983 Now Online
XDA Developers Android and Mobile Development Forum

[SOLVED] CM7 -- changing softkey button order

Tip us?
 
Kybard
Old
(Last edited by Kybard; 15th April 2012 at 07:55 PM.) Reason: to indicate in the subject line that the question's been answered
#1  
Kybard's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 12
Join Date: Aug 2011
Default [SOLVED] CM7 -- changing softkey button order

I've been using the MIRAGE CM7.2 KANG ever since I got my NC back in January, and I love it. For a while I was using the ICS Tablet Tweaked theme, but decided that I prefer a lot of the look and feel without that theme, especially after later updates made the theme act a little funky.

The one thing I did like about the ICS theme was that the softkey buttons I used were in the ICS order -- back, home, notifications, menu -- while the system theme has (to me) a bit of a less-natural order: home, menu, back, notifications. Is there any easy way I'm missing to change up that order? There are no options I can see for it in the Cyanogenmod Settings menu.

If it'd require some editing of this or that file, I can probably figure it out, but I don't know where to start. Thanks to anyone in advance!
The Following User Says Thank You to Kybard For This Useful Post: [ Click to Expand ]
 
Kybard
Old
#2  
Kybard's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 12
Join Date: Aug 2011
After some research and snooping, I figured this out on my own!

I used APKTool to decompile SystemUI.apk (using this guide, sans the HTC-specific parts), and edited res/layout/status_bar.xml in WordPad by finding the items that looked like this:

Code:
 <ImageButton android:id="@id/status_back"
android:background="@drawable/ic_statusbar_back_bottom"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
...and changing names around (i.e. "back" to "home" in each applicable space).

I also did some editing of the PNG files in res/drawable-mdpi to get a little closer to the ICS flavor. The end result:



...is perfect!

Thanks to the CM7 team for an amazing experience on my Nook and to mrg666 for his KANG!
The Following 4 Users Say Thank You to Kybard For This Useful Post: [ Click to Expand ]
 
Philux-X
Old
#3  
Philux-X's Avatar
Senior Member
Thanks Meter 18
Posts: 400
Join Date: Feb 2007
Location: Fort Leonard Wood
Excellent guide, I was wondering how to change the order.
Can you share your png files, or point me to where you used them from?
 
Philux-X
Old
#4  
Philux-X's Avatar
Senior Member
Thanks Meter 18
Posts: 400
Join Date: Feb 2007
Location: Fort Leonard Wood
Angry CWM Flashable CM7.2 ICS Button Order

I made a flashable.zip to rearange the Soft Keys on CM7.2-RC1 MiRaGe - KANG build specifically 04/16/2012 update. It may work on other builds, but I have not tested. So be sure to backup and try at your own risk.

In the zip is the modified SystemUI with the buttons laid out in the order of ICS

Find the attached file and flash it in CWM to install the new SystemUI with modified softbutton order.
I also included a revert to flash back the stock SystemUI if something goes wrong.

REMEMBER FLASH AT YOUR OWN RISK!!!!! THIS IS FOR *CM7.2-RC1 MiRaGe -KANG*
I have only tested this for the above build.
Attached Files
File Type: zip ICS SoftButton Order.zip - [Click for QR Code] (389.0 KB, 143 views)
File Type: zip ICS SoftButton Order Revert.zip - [Click for QR Code] (394.2 KB, 60 views)
The Following 3 Users Say Thank You to Philux-X For This Useful Post: [ Click to Expand ]
 
Kybard
Old
(Last edited by Kybard; 18th April 2012 at 01:45 PM.) Reason: zip didn't seem to work! updated it.
#5  
Kybard's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 12
Join Date: Aug 2011
Nice work! I'm glad this was helpful. I'd just been swapping in the new APK using ES File Explorer, but a flashable zip is a great resource.

Here's a .zip file with some of the PNG files I changed. Switching these out with the images in res/drawable-mdpi will black out the "separator" bars around each of the buttons, and also change the Quick Notifications button to the ICS Recent Apps button.
Attached Files
File Type: zip button_pngs.zip - [Click for QR Code] (33.8 KB, 69 views)
The Following 2 Users Say Thank You to Kybard For This Useful Post: [ Click to Expand ]
 
Philux-X
Old
#6  
Philux-X's Avatar
Senior Member
Thanks Meter 18
Posts: 400
Join Date: Feb 2007
Location: Fort Leonard Wood
Excellent!!! Thanks for sharing the images. Added your PNG files to the SystemUI along with the changed layout and made it all CWM Flashable.

Same Warnings apply as above...
Attached Files
File Type: zip CM7.2 ICS SoftButtons.zip - [Click for QR Code] (387.1 KB, 135 views)
The Following 3 Users Say Thank You to Philux-X For This Useful Post: [ Click to Expand ]
 
ponyboy82
Old
#7  
Senior Member
Thanks Meter 57
Posts: 622
Join Date: Apr 2011
This is great. I didn't care for the ICS-style layout in joe's ICS theme, but now I'm really used to it.

Will these also change the battery icon to have the % plus the bar icon? I'm missing that from CM9.
 
Kybard
Old
#8  
Kybard's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 12
Join Date: Aug 2011
If you mean how the battery looks on my screenshot, you can get that through Settings - CyanogenMod settings - Interface - Status bar tweaks - Battery status style, and switching to Percentage. I think that's all there is to it!
 
ponyboy82
Old
#9  
Senior Member
Thanks Meter 57
Posts: 622
Join Date: Apr 2011
Quote:
Originally Posted by Kybard View Post
If you mean how the battery looks on my screenshot, you can get that through Settings - CyanogenMod settings - Interface - Status bar tweaks - Battery status style, and switching to Percentage. I think that's all there is to it!
Ok, I'll have to try this again. I thought I did that last night but just got the numbers w/o the bar next to it.
 
Kybard
Old
#10  
Kybard's Avatar
Junior Member - OP
Thanks Meter 10
Posts: 12
Join Date: Aug 2011
You might have to reboot -- I remember having some issues like that.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes