AutoApplication v3.1[JB]Custom Navigation Bar/BatteryMod/H->4G [4.1.1 Support]

ChrisJ951

Senior Member
Jan 25, 2011
494
307
0
[B[V3.1[/B] Fixed an error where stock battery icons were deleted (Didn't change any code, just replaced the icons)
http://multiupload.biz/0y88lkq19y1i/NavBarEditorv3.1.1_MultiUpload.biz.rar.html

V3.1 Supports switching the H to a 4G
http://multiupload.biz/6q2tr7eiyuy8/NavBarEditorv3.1_MultiUpload.biz.rar.html
http://depositfiles.com/files/v6ppjb001
https://rapidshare.com/#!download|668p11|296646306|NavBarEditorv3.1_MultiUpload.biz.rar|3339|0|0

V3 is up and supports custom icons for the navigation buttons. And options for the 100% battery mod - It also fixes the issue of not being able to ever see the menu button if you choose a setup without menu in it.
When the app launches it pops up explaining what to do. It's basically this:
1)Make sure SystemUI.apk and framework-res.apk are in the top level directory.
2)Replace any icons in the icons folder with ones you like
3)Follow the format given for each of the questions
For v4 expect edits to hide the navbar buttons when the phone is locked.
MAKE SURE YOUR JAVA IS UP TO DATE
If you have any issues, try replacing apktool with another version
http://multiupload.biz/85efqpltkkht/NavBarEditorv3_MultiUpload.biz.rar.html
http://depositfiles.com/files/hwj3z87mf


V2 Is Up and Supports Height Editing -- Check the readme
Just copy in your SystemUI.apk , framework-res.apk and WinRar.exe (it should be located in C:\Program Files\WinRAR) and then run NavBar.bat
I'll start filling custom height request now. In v3 expect the ability for custom pictures.
v2.2: Fixes an issue if going back to standard size from non-standard sizes: http://multiupload.biz/r1tcbdm6asxz/NavBarEditorV2.2_MultiUpload.biz.rar.html
v2.3 If you don't want to use a visible menu but want it to appear how it normally does: will upload shortly


Program to edit it yourself, just copy WinRar.exe into the folder (Should be located in C:\Program Files\WinRAR Just run NavBar.bat . Also, make sure to include at least home and back as I haven't edited out a bug if they aren't included. If any of the icon centerings are off post a picture and I'll fix the app (I was guessing on the spacing for them)
http://multiupload.biz/91q6gwoenirr/Nav Bar Editor_MultiUpload.biz.rar.html
Also forgot to mention, add in your framework-res.apk


Seemed there was some request for custom navigation bars so I figure'd I'd fill them.

There may be bugs and I'm currently only taking requests for portrait mode as I've seemed to get it mostly working. I'll post a guide for landscape later for those who want it.

First upload is a CWM zip for the requested MENU-HOME-BACK
X*--------------------------------------------------------------
Changelog
X*--------------------------------------------------------------
-Updated to v2 and added a photo
-Added BACK-MENU-RECENT-HOME
-Added menu-BACK-HOME-SEARCH-menu
-Added MENU-BACK-HOME-RECENT-SEARCH
-Fixed RECENT on BACK-MENU-RECENT-HOME *This is a temp fix, I'll work on a real fix later
-Fixed RECENT on MENU-BACK-HOME-RECENT-SEARCH *This is a temp fix, I'll work on a real fix later
-Fixed both zips RECENT buttons
X*--------------------------------------------------------------

I'm testing an automation tool to do these. Please post if they do/don't work. I've tested half and they seem to be fine.
X*--------Automated-Downloads------------------
BACK-HOME-RECENT-MENU
http://multiupload.biz/fok97zccfvuk/BACK-HOME-RECENT-MENU_MultiUpload.biz.zip.html

BACK-HOME-RECENT-SEARCH-MENU
http://multiupload.biz/eshw7sqb6vxr/Back-Home-Recent-Search-Menu_MultiUpload.biz.zip.html

BACK-MENU-HOME-RECENT
http://multiupload.biz/gt21kxxz1zsg/BACK-MENU-HOME-RECENT_MultiUpload.biz.zip.html

MENU-HOME-BACK-RECENT
http://multiupload.biz/q1ruklj74cat/menu-home-back-recent_MultiUpload.biz.zip.html

MENU-RECENT-HOME-BACK
http://multiupload.biz/y9zydf03r2qm/Menu-Recent-Home-Back_MultiUpload.biz.zip.html

menu-search-recent-home-back
http://multiupload.biz/slm1wx10jitl/menu-search-recent-home-back_MultiUpload.biz.zip.html

recent-home-back-menu.zip
http://multiupload.biz/zyfnlhgyuurh/recent-home-back-menu_MultiUpload.biz.zip.html

MENU-HOME-BACK
http://multiupload.biz/00y7lri0e9sg/mhb_MultiUpload.biz.zip.html

back-home-recent-search 30dp
http://multiupload.biz/h126hzac209v/back-home-recent-search-30_MultiUpload.biz.zip.html

Recent-home-back:
http://multiupload.biz/35o7nlpjq8gp/rhb_MultiUpload.biz.zip.html

search-recent-home-back-menu
http://multiupload.biz/xh35pno4wuvj/srhbm_MultiUpload.biz.zip.html

search-back-home-recent-menu
http://multiupload.biz/59iijhf8g4pd/sbhrms_MultiUpload.biz.zip.html

--------Made in NavBar v3-----------------------------
back-menu-home-search-recents
http://multiupload.biz/j9cfhn13l3wl/bmhsr-48dip-100BatteryMod_MultiUpload.biz.zip.html

home, menu, back home
http://multiupload.biz/rkgiv09q6t12/hmbh-48dip-100BatteryMod_MultiUpload.biz.zip.html


menu home back in a 32dpi
http://multiupload.biz/vxt03q5saprq/mhb-32dip-100BatteryMod_MultiUpload.biz.zip.html


RECENTS-HOME-BACK-SEARCH
http://multiupload.biz/wos71ryf9n1p/rhbs-48dip-100BatteryMod_MultiUpload.biz.zip.html

home,menu,back recent.
http://multiupload.biz/4toaigzwr948/hmbr-48dip-100BatteryMod_MultiUpload.biz.zip.html

menu home back in a 30
http://multiupload.biz/nc8u6z0ej1vt/mhb-30dip-100BatteryMod_MultiUpload.biz.zip.html


back-home-recents 30
http://multiupload.biz/aaof68ek1aiz/bhr-30dip-100BatteryMod_MultiUpload.biz.zip.html

back-home-recents Standard DPI, battery mod, 4g mod
http://multiupload.biz/5k6sfyu3kb7n/bhr-48dip-100BatteryMod-4g_MultiUpload.biz.zip.html


back-menu-home-recents-search
http://multiupload.biz/4631lbuvzqpg/bmhrs-48dip-100BatteryMod_MultiUpload.biz.zip.html

back-NexusSMenu-home-recents:
http://multiupload.biz/h224d3h4tyon/bmhr-48dip-100BatteryMod-NexusSMenu_MultiUpload.biz.zip.html

-------------Using NexusS Menu-------------------

back-home-recent-menu
http://multiupload.biz/3wmo1amlmpmi/back-home-recnt-Smenu_MultiUpload.biz.zip.html

back-menu-recent-home
http://multiupload.biz/9kys5pp7paiz/back-Smenu-recents-home_MultiUpload.biz.zip.html

back-NexusSMenu-home-recents:
http://multiupload.biz/h224d3h4tyon/bmhr-48dip-100BatteryMod-NexusSMenu_MultiUpload.biz.zip.html

Recent-home-back-search-menu.zip
http://multiupload.biz/2fl9egnk01sd/rhbsm_MultiUpload.biz.zip.html


X*-------------------------------------------


Working on new request now, just some notes:
Unless you provide PNGs of the icons, I can't change them (this includes colors).
I'm currently only doing xml edits, and file swapping.
I also don't have a working version for long pressing on home pulling up recent apps but I'll look into it later.

NOTE:ZIPs are for Bigxies v1, the guide works for any though
EDIT: Can somebody not on Bigxies v1 test these updated zips? I'm hoping they'll now work on other ROMs


Guide:THIS WORKS BUT ISN'T COMPLETELY UPDATED
Note: This guide assumes you know how to use apktool, if not PM me and I can help you with it.

1)Decompile SystemUI.apk
2)navigate to /res/layout/navigation_bar.xml
3)The items Inside the com.android.systemui.statusbar.phone.NavigationBarView,then the FrameLayout, then the LinearLayout are the navigation items. (It helps to format this through eclipse so its not all crammed into a few lines)
Everything under this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NavigationBarView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ff000000" >

    <FrameLayout
        android:id="@id/rot0"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <LinearLayout
            android:id="@id/nav_buttons"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:animateLayoutChanges="true"
            android:clipChildren="false"
            android:clipToPadding="false"
            android:orientation="horizontal" >
up until </LinearLayout> is the navigation bar.

The first item the <View>
Code:
 <View
                android:layout_width="40.0dip"
                android:layout_height="fill_parent"
                android:layout_weight="0.0"
                android:visibility="invisible" />
is leftward spacing, this prevents the navigation bar from being too far to the left.

The <com.android.systemui.statusbar.policy.KeyButtonView> are the buttons.
The
Code:
            <View
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_weight="1.0"
                android:visibility="invisible" />
is the spacing between the buttons (so theyre not too close). This View (NOTE: THIS IS NOT THE SAME AS THE FIRST VIEW) needs to be between all of the buttons EXCEPT FOR the last menu (leave this here, if you don't want the regular menu button to ever show, set its layout_height to 1dp

Now on how to edit the buttons:

To just change the order, copy the entire
<com.android.systemui.statusbar.policy.KeyButtonView> and swap it with another one.

To change the button to a custom one (such as a menu, or search) the best way is to copy the recent applications
Code:
  <com.android.systemui.statusbar.policy.KeyButtonView
                android:id="@id/recent_apps"
                android:layout_width="@dimen/navigation_key_width"
                android:layout_height="80.0dip"
                android:layout_weight="0.0"
                android:contentDescription="@string/accessibility_recent"
                android:src="@drawable/ic_sysbar_recent_land"
                systemui:glowBackground="@drawable/ic_sysbar_highlight_land" />
and add in the line systemui:keyCode="82"

width/height should remain the same (unless you want a small menu, change layout_width to "@dimen/navigation_menu_key_width"

change the id to "@+id/custom_button_name"

change the android:src to the correct image, i.e. "@drawable/ic_sysbar_recent_back" for back. You can add custom images by going into /res/drawable-xhdpi and adding them (this is also where you can modify what current ones look like).

For example to add a search icon, make a png with an invisible background and the icon you want and title it "ic_sysbar_search" and change android:src to android:src="@drawable/ic_sysbar_search".

Now, to actually make the button do what you want, you need to edit
systemui:keyCode="82". For search we would change it to 84.

So the final <com.android.systemui.statusbar.policy.KeyButtonView> for search would be:

Code:
<com.android.systemui.statusbar.policy.KeyButtonView
                android:id="@+id/search"
                android:layout_width="@dimen/navigation_key_width"
                android:layout_height="fill_parent"
                android:layout_weight="0.0"
                android:contentDescription="@string/accessibility_menu"
                android:src="@drawable/ic_sysbar_search"
                systemui:glowBackground="@drawable/ic_sysbar_highlight"
                systemui:keyCode="84"
                systemui:keyRepeat="false" />
A list of all the keyCodes can be found here:
http://developer.android.com/reference/android/view/KeyEvent.html (look for the number, not the name)

Now just recompile SystemUI.apk and replace it with the one on your phone.


----------------------------------------------------
If you like my work please consider looking at my timer app and comment or give suggestions:
http://forum.xda-developers.com/showthread.php?t=1763430
 

Attachments

Last edited:

Chance Ill

Senior Member
Dec 25, 2007
677
188
73
Planet Android
Seemed there was some request for custom navigation bars so I figure'd I'd fill them.

There may be bugs and I'm currently only taking requests for portrait mode as I've seemed to get it mostly working. Landscape shouldn't be any harder but I'm tired for today.

First upload is a CWM zip for the requested MENU-HOME-BACK
Screenshots?

Sent from my Jelly Belly using xda premium
 
  • Like
Reactions: BDFreak

ChrisJ951

Senior Member
Jan 25, 2011
494
307
0
Screenshots?

Sent from my Jelly Belly using xda premium
I'll upload some in a few minutes. Testing out some other things and then I'll reflash it for pics

Edit: reflashed it and it works fine, but is slightly off center, going to try fixing it before uploading pics


----------------------------------------------------
If you like my work please consider looking at my timer app:
http://forum.xda-developers.com/showthread.php?t=1763430
 
Last edited:

ChrisJ951

Senior Member
Jan 25, 2011
494
307
0
Did you change the order in which they are listed in the XML?

Sent from my Galaxy Nexus using Tapatalk 2
It's a bit more than that but yes. You also have to change what the keys do (for any of the non standard three), you can make them do more than the standard menu/back/search/recent apps too


----------------------------------------------------
If you like my work please consider looking at my timer app:
http://forum.xda-developers.com/showthread.php?t=1763430
 
Last edited:

Jnn1

Senior Member
Nov 10, 2010
358
68
0
Any chance you can make it customizable like AOKP. I had it back-home-menu, with long press respectively kill app-recent apps-search. I'd love to replicate on jelly bean!

Sent from my GT-P7310 using xda premium
 

albsat

Senior Member
Jan 1, 2012
3,317
554
243
Is there a reason why you removed the recent button? Would you please make another mod with recent on the right side?

Sent from my Galaxy Nexus using xda app-developers app
 

Jiia

Senior Member
Jun 10, 2010
436
128
0
Oulu, Finland
Epic! I spent six hours trying to do this by editing the xml but couldn't get it to work. Thanks so much :)

EDIT: The flashable zip breaks systemUI in modaco ROM so would you be so kind and tell which files you modified. That way I could copy them ower to the original files to get it working.

EDIT2: Didn't work with bigxies stock JB either, something wrong with the zip. SYSTEMUI force close.
 
Last edited:
  • Like
Reactions: Furzbirre

neok44

Senior Member
May 19, 2009
1,557
162
0
Florida
if possible:

small menu / back / home / search / small menu

menus default visibility
if possible, home with long press to recent, but still with google now working.
 

ChrisJ951

Senior Member
Jan 25, 2011
494
307
0
Epic! I spent six hours trying to do this by editing the xml but couldn't get it to work. Thanks so much :)

EDIT: The flashable zip breaks systemUI in modaco ROM so would you be so kind and tell which files you modified. That way I could copy them ower to the original files to get it working.

EDIT2: Didn't work with bigxies stock JB either, something wrong with the zip. SYSTEMUI force close.
I tested it on bigxies v1 but not v2, maybe something changed? Which one did you use?
Edit: I just tested it again and it still works on v1 at least

As to the requests I'll work on them now, and then I'll make a guide on how to do it.


----------------------------------------------------
If you like my work please consider looking at my timer app:
http://forum.xda-developers.com/showthread.php?t=1763430
 
Last edited:

Jiia

Senior Member
Jun 10, 2010
436
128
0
Oulu, Finland
I tested it on bigxies v1 but not v2, maybe something changed? Which one did you use?
Edit: I just tested it again and it still works on v1 at least

As to the requests I'll work on them now, and then I'll make a guide on how to do it.
I tested it on bigxies v2. I'll try v1 next to see if that works.

Sent from my Galaxy Nexus using Tapatalk 2
 

dictionary

Senior Member
Dec 3, 2009
4,509
1,562
0
Thanks!!!! Working great on jelly belly 2.1. If you are up for it, is there a way to make the menu icon the three lines, vs the 3dots? Like the stock nexus s? If not no worries, I'm more than thankful for this layout. You rock!