[MOD][XPOSED][2018/3/20 6.3]Android NavBar Buttons

Search This thread

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
Hi @itandy. Grabbed everything. Worked well w/ KK. Updated to LP recently. When importing the files, here's what my nav bar looks like (photo attached), compared to what the preview shows. Looks like Back back, home, and recent button not coming through.

So you're using user define theme? Can you share the image files you're using?
 

munsabin

Senior Member
Mar 29, 2013
70
15
Toronto
So you're using user define theme? Can you share the image files you're using?

@itandy I don't have them anymore. I realized the only buttons I wanted to change for the user defined version was the search button, and if you don't have images w/ the specified names as you instruct in the app, then the default ones will take over, which I what I wanted.

But, just in case you want to try them, the images are exactly the ones that i got off your site for the L-theme back, home, and recent buttons, which were the ones that were squeezed together.
 

salimtn

Senior Member
Nov 25, 2014
529
123
kairouan
Hi,module not working with cm12.1
I just disabled all modules
Activate this module and reboot
Tried to change themes but its always the same
I used to work with it with my stock tw so I think I know what to do
Here is my error.log
http://www.2shared.com/file/gPx0fBVW/error.html?

Edit : after trying hard I can change themes,but search button doesn't appear at all
74177739820aab5bc588e1f3bd3bbec7.jpg

Sent from my SM-G7102 using Tapatalk
 
Last edited:

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
Hi,module not working with cm12.1
I just disabled all modules
Activate this module and reboot
Tried to change themes but its always the same
I used to work with it with my stock tw so I think I know what to do
Here is my error.log
http://www.2shared.com/file/gPx0fBVW/error.html?

Edit : after trying hard I can change themes,but search button doesn't appear at all
74177739820aab5bc588e1f3bd3bbec7.jpg

Sent from my SM-G7102 using Tapatalk

Yes, this module is known to have compatibility issue with CM ROM because CM has greatly changed the navbar with it's own customization.
 
  • Like
Reactions: salimtn

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong

PVL_93_RU

Senior Member
Apr 20, 2012
3,243
545
This module will not work on crDroid because the ROM has navbar customization options built-in. Therefor, you should either switch to something like CM12, or move to the Stock ROM entirely
 

Black Plague

Senior Member
Aug 7, 2011
254
59
I dont if its a bug or not I used custom themes, when the system restarts the system ui incl nav bar wont show in portrait mode, it shows only on landscape mode with 3 buttons only but in this mode setting i keep the number of buttons to 5, btw I used Xperia Leo(z3) with LP 5.0.1 Stock
 

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
I dont if its a bug or not I used custom themes, when the system restarts the system ui incl nav bar wont show in portrait mode, it shows only on landscape mode with 3 buttons only but in this mode setting i keep the number of buttons to 5, btw I used Xperia Leo(z3) with LP 5.0.1 Stock

Please send me Xposed log as well as logcat after reboot. Screenshots help too.

So this problem only happen after a reboot? Do you have any other Xposed modules enabled? Please try to isolate the problem by disabling all other modules first.
 

Black Plague

Senior Member
Aug 7, 2011
254
59
Please send me Xposed log as well as logcat after reboot. Screenshots help too.

So this problem only happen after a reboot? Do you have any other Xposed modules enabled? Please try to isolate the problem by disabling all other modules first.
ok bro I will recreate the problem and report later, cant take screenshot coz after the restart SystemUI wont start I think, no security code just blank screen flashing black and white again and again, and this things will stop after I connect charging dock coz this thing stop at landscape mode, only the power button options ie reboot shutdown is working at that time so I did reboot into safemode and turn of ur module and things started working again but I missed the buttons, So I had to complain,
My criteria is:
Stock z3 rom v.28
More than 10 xposed modules installed but I think there is no conflict coz I turned off the navigation things on GravityBox
And I used custom Images made myself so that I can replace search button with power button, I will try again with inbuild theme and report if the same problem is happening or not, I think it with image cache stuff the one u talk about in custom theme
 

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
ok bro I will recreate the problem and report later, cant take screenshot coz after the restart SystemUI wont start I think, no security code just blank screen flashing black and white again and again, and this things will stop after I connect charging dock coz this thing stop at landscape mode, only the power button options ie reboot shutdown is working at that time so I did reboot into safemode and turn of ur module and things started working again but I missed the buttons, So I had to complain,
My criteria is:
Stock z3 rom v.28
More than 10 xposed modules installed but I think there is no conflict coz I turned off the navigation things on GravityBox
And I used custom Images made myself so that I can replace search button with power button, I will try again with inbuild theme and report if the same problem is happening or not, I think it with image cache stuff the one u talk about in custom theme

Turning off navigation bar option in GravityBox is not enough. GB has such a design that some of it's feature cannot be completely disabled unless the entire module is disabled in Xposed.
 

fabio000

Senior Member
Jul 19, 2010
228
101
Mauá
Any way to make it compatible in ROMs with modified navbars?

This is the only thing keeping me on stock/aosp ROMs and this modules is a must have if you use a DPI much lower than stock and need to adjust the margins

also, anyone know another method to change the margins? In case anyome wants, I made a fix to it for Nexus 5 :eek:
 
Last edited:

itandy

Senior Member
Apr 28, 2010
2,382
1,355
Hong Kong
Just curious, anyone still having incorrect navbar button size issue on Android 5.1? I finally got hold of a 5.1.1 device but am unable to reproduce the issue.
 
  • Like
Reactions: salimtn

salimtn

Senior Member
Nov 25, 2014
529
123
kairouan
Thank you
So we will see this app soon in cm12.1 5.1.1 ?
Even if no thank you ...

sent from my g7102 CM12.1 5.1.1 r8 using tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 49
    This Xposed module allows you to change the NavBar buttons on your Xperia/AOSP devices. On stock ROM, there're only three buttons on the NavBar (Back, Home and Recent Apps). Now you can have complete control of the buttons and how they look like.

    Features
    1. Show or hide Recent Apps, Menu and Search buttons
    2. Re-order buttons
    3. 18 themes with different colors
    4. Use your own images for buttons http://xdaforums.com/showpost.php?p=53045744&postcount=136
    5. Restart SystemUI to see changes immediately without rebooting (Busybox required)
    6. Activate changes on the fly without root (Nougat only)
    7. Define left and right margin
    8. Define navbar height
    9. Define search button action

    Requirements
    1. Your phone must be rooted
    2. Xposed framework must be installed first http://xdaforums.com/showthread.php?t=1574401
    3. Xposed library 2.2 is required

    Instructions
    1. Install the module
    2. Run Xposed Installer and enable the module Android NavBar Buttons
    3. Reboot the phone
    4. If you want to use your own button images, check out this link.

    Permissions
    • WRITE_EXTERNAL_STORAGE - store stock button images for preview
    • READ_EXTERNAL_STORAGE - read stock button images for preview
    • GET_TASKS - used by Switch to Last App function
    • REORDER_TASKS - used by Switch to Last App function

    Limitations & supported devices
    I developed this module based on AOSP source code and tested only on my Xperia devices. I expect it to work also on AOSP devices such as Google Nexus. You can try it on other devices but I don't expect it to work universally, especially HTC and Samsung devices because their framework is heavily modified.

    If you enable this module and Tinted Status Bar together, the color for the Home/Menu/Recent/Back buttons will be controlled by Tinted Status Bar while the Search button color will be controlled by this module.

    If you're also using GravityBox, you must disable Navigation Bar Tweaks. Otherwise, this module won't work.

    Currently the following devices are supported: (to be updated)
    • Sony Xperia ZR stock 4.3 ROM
    • Sony Xperia V stock 4.3 ROM
    • Sony Xperia ZL stock based custom ROM/eXistenZ
    • Sony Xperia SP ExistenZ 3.3.0
    • Sony Xperia T
    • Sony Xperia M dual stock 4.2.2 ROM
    • Sony Xperia Z1 4.4 ihackers 4.1
    • Sony Xperia Z1 Compact stock KK ROM
    • Sony Xperia Z stock 4.3 ROM
    • Nexus 5 stock 4.4.2
    • Nexus 7 (2013) stock 4.4.2
    • MUCH i5s
    • Moto G stock 4.4.2 ROM
    • Moto X stock 4.4.2 ROM
    • Samsung Galaxy Lollipop or older devices (you need to set qemu.hw.mainkeys=0 in build.prop to enable Navbar)
    • Samsung Galaxy Marshmallow or higher devices
    • Sony Xperia X series devices Marshmallow ROM

    Credits
    I used this guide to help me develop this module. This document is outdated but the concept is still the same.

    Huge thanks to atticus182 for his great work of Softkey collection
    http://xdaforums.com/galaxy-nexus/themes-apps/softkeys-softkey-collection-t1413582

    Thanks to C3C076 for his wonderful GravityBox! This module uses some of his codes for search button actions.

    Supports & troubleshooting
    If you're using Android 6 and are unable to see folders when importing image files for user define theme, you need to grant Storage permission in App settings.

    If you find that this module doesn't work on your device and see FC repeatedly and both notification and navigation bar disappeared, don't panic! Just run Xposed Installer, disable this module and reboot.

    If you want me to add support for your device, please send me the following:
    1. Xposed log file
    2. Your device model
    3. Android and ROM version
    4. Deodexed /system/app/SystemUI.apk or you can send me a link for the ROM
    ** I can only work on Xperia/AOSP devices at the moment, please don't send requests on other devices **
    ** CM ROM is not supported because it has its own implementation of NavBar **

    Source code
    You can find source code for this module from GitHub here.

    Download
    Xposed Module Repository | Play Store
    23
    Instructions to use user define button image:
    1. Prepare your own buttons images in PNG format. Name the files using the following format. You don't need to prepare all of them. Stock image will be used if a user define version is not found.
    2. Copy the files into your internal sd storage. Any folder under the internal sd storage is fine. Very often, you can access this using the path /sdcard/.
    3. In Select theme screen, there's now a new theme called User define
    4. If this is the first time you select User define, then you should see a list of folders in your internal sd storage. Otherwise, you should see a new button called Import button images
    5. Navigate to the folder where you've stored the images
    6. If successfully detected, it should shows the number of image files found
    7. Tap Confirm button
    8. The module will copy the files into it's own cache folder so your copy can safely be deleted now
    9. Restart SystemUI or reboot to take effect

    Image filename format:
    • ic_sysbar_back.png - Back button (portrait)
    • ic_sysbar_back_land.png - Back button (landscape)
    • ic_sysbar_back_ime.png - Back button (portrait and when keyboard is shown)
    • ic_sysbar_back_ime_land.png - Back button (landscape and when keyboard is shown)
    • ic_sysbar_home.png - Home button (portrait)
    • ic_sysbar_home_land.png - Home button (landscape)
    • ic_sysbar_menu.png - Menu button (portrait)
    • ic_sysbar_menu_land.png - Menu button (landscape)
    • ic_sysbar_menu_alt.png - Menu button (portrait and alternate)
    • ic_sysbar_menu_alt_land.png - Menu button (landscape and alternate)
    • ic_sysbar_recent.png - Recent button (portrait)
    • ic_sysbar_recent_land.png - Recent button (landscape)
    • ic_sysbar_search.png - Search button (portrait)
    • ic_sysbar_search_land.png - Search button (landscape)
    6
    Change Log
    Code:
    6.3
    - Fix the issue that customized navbar is not activated after a reboot for Nougat and higher devices
    
    6.2
    - On Nougat and later, customzied navbar will be applied much earlier after a system reboot
    
    6.1
    - Add support for Android 8 (Oreo)
    - Fix the issue that settings are not applied after system reboot for Nougat and higher
    
    6.0
    - Add support for Nougat
    - Rename application as Android NavBar Buttons
    - Settings can be activated on the fly without root in Nougat (except navbar height and width)
    
    5.3
    - Fix issue with Sony Xperia latest X series devices
    
    5.2
    - Automatically enable navbar on Samsung devices on Android 6
    
    5.1
    - Fix button size issue when orientation is changed on tablet
    
    5.0
    - Fix issue with Asus Zenpad when using user define theme
    
    4.9
    - Fix theme issue with Xperia device on Android 5.0 and higher
    
    4.8
    - New separator which can be used to split buttons into 2 groups to mimic tablet mode in Android 6.0.1
    
    4.7
    - Fix missing buttons on Huawei devices when theme is applied
    
    4.6
    - Add support for Android 6.0
    
    4.5
    - Fix theme not working for Home/Menu/Recent/Back buttons on HTC devices
    
    4.4
    - Fix button image size and navbar height issue in KK
    
    4.3
    - Fix button image size issue in Android 5.1
    - Fix search button crash in ICS 
    
    4.2
    - New search button actions (Launch shortcut, Kill foreground app)
    
    4.1
    - Add Russian translation
    
    4.0
    - Add support for Lollipop (Android 5.0)
    
    3.8
    - Bug fix that setting UI crashes on some devices
    
    3.7
    - New option to customize search button actions
    
    3.6
    - Bug fix an issue that navbar height adjustment doesn't work on some devices
    
    3.5
    - Maximum margin is now automatically set to 75% of screen width
    - NavBar height adjustment
    - Added Lollipop buttons to theme
    
    3.4
    - Fix issue during orientation change when recent button is disabled
    - Larger margin values
    
    3.3
    - Define left and right margin
    
    3.2
    - Fix button alignment issue for Samsung Tab
    
    3.1
    - Add translation for Chinese (Thanks to surwscl)
    
    3.0
    - User define button images [URL="http://xdaforums.com/showpost.php?p=53045744&postcount=136"]http://xdaforums.com/showpost.php?p=53045744&postcount=136[/URL]
    
    2.3
    - Fix preview stock buttons not displayed correctly if a theme is currently in effect
    
    2.2
    - Fix preview stock button size on some devices
    
    2.1
    - Fix missing buttons in landscape mode in Nexus 7
    - Fix stock button size on some devices
    
    2.0
    - New option to choose themes (17 themes with different colors)
    - Bug fixes
    
    1.2
    - New option to show or hide Recent Apps button
    
    1.1
    - Add support for MUCH i5S
    
    1.0
    - New option to re-order buttons
    
    0.7 alpha
    - New option to select Menu and/or Search button to show
    - Restart SystemUI process to apply changes immediately
    
    0.5 alpha
    - Initial version
    4
    Guys, I'm just thinking about how to implement the adjustable spacing for navbar buttons. Currently, the buttons are evenly spaced among the available width of the navbar.

    For example, if your device is 720px and you choose to have 5 buttons. Then each button will occupy 144px.

    I plan to add 2 options: left and right margins.

    Using the above example, if now you choose to have 50px for left and right margin, then the spacing will become:

    [space 50px] + [button 1 124px] + [button 2 124px] + [button 3 124px] + [button 4 124px] + [button 5 124px] + [space 50px]

    The effect is the buttons are closer together with more space on the left and right sides.

    Please let me know what do you think about this implementation.
    3
    Love thus work, many thanks.

    Is it possible to have the menu button hide on its own, only show if needed like on the stock?

    And would be great if users can adjust the distance between the buttons and the size.

    Great work, :)

    Sent from my C6603 using XDA Premium 4 mobile app

    Not sure about the menu button hide because that needs considerable change in the module. Anyway I can take a look.

    Spacing between buttons will be added in next release. You cannot just change the size of the button because the image will be unfit. I also plan to allow user to select button image and I believe that's a better option.