Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[SOLVED] CM7 -- changing softkey button order

OP Kybard

12th April 2012, 07:40 PM   |  #1  
Kybard's Avatar
OP Junior Member
Thanks Meter: 10
 
12 posts
Join Date:Joined: Aug 2011
More
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!
Last edited by Kybard; 15th April 2012 at 08:55 PM. Reason: to indicate in the subject line that the question's been answered
The Following User Says Thank You to Kybard For This Useful Post: [ View ]
15th April 2012, 08:12 PM   |  #2  
Kybard's Avatar
OP Junior Member
Thanks Meter: 10
 
12 posts
Join Date:Joined: Aug 2011
More
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: [ View ]
17th April 2012, 04:19 PM   |  #3  
Philux-X's Avatar
Senior Member
Flag Fort Leonard Wood
Thanks Meter: 22
 
406 posts
Join Date:Joined: Feb 2007
More
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?
18th April 2012, 03:48 AM   |  #4  
Philux-X's Avatar
Senior Member
Flag Fort Leonard Wood
Thanks Meter: 22
 
406 posts
Join Date:Joined: Feb 2007
More
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, 149 views)
File Type: zip ICS SoftButton Order Revert.zip - [Click for QR Code] (394.2 KB, 64 views)
The Following 3 Users Say Thank You to Philux-X For This Useful Post: [ View ]
18th April 2012, 02:25 PM   |  #5  
Kybard's Avatar
OP Junior Member
Thanks Meter: 10
 
12 posts
Join Date:Joined: Aug 2011
More
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, 72 views)
Last edited by Kybard; 18th April 2012 at 02:45 PM. Reason: zip didn't seem to work! updated it.
The Following 2 Users Say Thank You to Kybard For This Useful Post: [ View ]
19th April 2012, 03:57 AM   |  #6  
Philux-X's Avatar
Senior Member
Flag Fort Leonard Wood
Thanks Meter: 22
 
406 posts
Join Date:Joined: Feb 2007
More
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, 139 views)
The Following 3 Users Say Thank You to Philux-X For This Useful Post: [ View ]
19th April 2012, 04:00 PM   |  #7  
Senior Member
Thanks Meter: 57
 
622 posts
Join Date:Joined: 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.
19th April 2012, 06:04 PM   |  #8  
Kybard's Avatar
OP Junior Member
Thanks Meter: 10
 
12 posts
Join Date:Joined: Aug 2011
More
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!
19th April 2012, 06:41 PM   |  #9  
Senior Member
Thanks Meter: 57
 
622 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by Kybard

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.
19th April 2012, 07:03 PM   |  #10  
Kybard's Avatar
OP Junior Member
Thanks Meter: 10
 
12 posts
Join Date:Joined: Aug 2011
More
You might have to reboot -- I remember having some issues like that.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes