Adding Soft Buttons - Verizon HTC One (M7)

I went into my build.prop and added
Code:
qemu.hw.mainkeys=0
on the bottom to get some soft nav keys.
Anyone else try this? I am using esfile w/ root explorer (rw all) and adding the code simply to the bottom of the file. Some reason it's not sticking. Running Nos_GPE 1.02.
Perhaps I should add it to another section above? I notice the bottom of the build.prob has an additional properties section i am appending the info to.
I will continue to tinker but in case someone was curious like me, figure we could document it.

It's not sticking because the stock Verizon kernel has system write protection enabled.

Dang im rusty. That makes total sense. Thanks.
Sent from my M7 using xda app-developers app

Related

Rosie question

I am running SkyRaider 3.3.3. My desire is to remap Rosie so that the center button will open the root folder in App Folders rather than my usual app drawer. This is because I have a lot of applications and having folder organization in my app drawer is a necessity.
I have searched and found a lot of threads about remapping, but none that give clear, step-by-step directions as to what needs to be edited.
I am likely trying to get into a project that's way over my head, but I would love to give it a shot and noodle with it in my free time. I just don't know where to begin.
Also, I am aware that this exact modification went into Uncommon Sense, which I have used and enjoy, but I would love to be able to change ROMs at will without losing this valuable feature.
EDIT: In an effort to try to figure it out by inductive reasoning, I have looked at the logs to see what events are triggered when I press the app drawer button, as well as the action I'd like to remap to that button. I then decompiled SkyRaider's Rosie classes.dex with baksmali and started digging around. So far, I can find absolutely nothing that makes any sense, leading me to believe this project is much, much bigger than I anticipated. I did get a laugh from the "UserHappinessSignals" file (the name, at least). I almost expected to open the file and find a list of words like "smile," and "laughter."
Alas, that was the one ray of sunshine in this otherwise massive and hellish undertaking.
The saddest part of this whole thing is that this exact thing I'm trying to do has been done in another ROM (Uncommon Sense). Mapping the exact same app (I installed the same modified version from Uncommon Sense 1.1) to the exact button I'm aiming for. I know the answer exists, and might not even be that impossible, but thus far, I'm stumped. Further, I'm lead to believe that Rosie.apk isn't the only place I'll need to work; I hear also com.htc.resources?
Honestly, if anyone can help me out, I'd be much obliged. I have put forth a great deal of effort thus far, but I'm realizing that effort without guidance results in a significantly higher ratio of time wasted vs. productive time.
Bump, with clarification.
I don't need or want to change the appearance of Rosie. I just want to change the event triggered when I press it.
I feel that should be at least a bit easier than an extreme cosmetic overhaul. Still beyond me, though.
Sent from my ADR6300 using XDA App
I have no idea how to change the buttons but I do know a cosmetic overhaul would be a lot easier.
Sent from my Incredible using XDA App
Not sure if this is what ya want but look up app folder in the market
I actually already have App Folders. Now the trick is integrating it into my Rosie launcher. Which is apparently seriously difficult.
Oh well. I'll keep plugging.
Sent from my ADR6300 using XDA App
I'm pretty sure I can get this working for you homie.
you need to be on a stock DEODEXED ROM. this is a must, I deodexed teh latest Nov OTA with no name completely stock deodexed. here is a link - http://www.multiupload.com/2KS0OS60DR
then what you need to do is either take uncommon sense's ROM rosie.apk or it's framework-res.apk. I think you just need the Rosie.apk, if you pull the rosie.apk from the uncommon sense rom you know has it, and make it into a flashable .zip to flash in recovery. I used this method for mynwarms rosiesettings.apk which allows you to pick the left and right rosie buttons with an easy to use app. its mad kick ass. but hit me up PM we'll get you going.
@kensikora:
The issue is that there are a couple of areas that need to be changed depending on how you want it to look.
The buttons, mapping of buttons and icons are in the Rosie APK. the App Drawer information is also in the Rosie APK (transparent, black, 4 or 5 rows). The look of the dock is in the resources (transparent, button look, traditional arc or straight line, ETC).
I am sorry if I missed this, but could you please let me know EXACTLY what you are looking for:
This is what I have currently:
Left Button - Phone
Middle Button - All Apps
Right Button - Google Voice
The dock it a traditional Rosie that is Semi transparent.
It is possible to create a flashable zip for the Rosie only that will assign your button locations BUT will take on the look of what ever ROM you flash.
EDIT: re-read 1st post. I belive I suggested you check out the EVO thread : http://forum.xda-developers.com/showthread.php?t=797688
if anyone can set up that center button to go where you want, he can.
The only change I really want to make is to have the center button open a modified version of App Folders instead of the usual all apps drawer, exactly how it works in Uncommon Sense.
I just really want to be able to try different ROMs instead of being tied to Uncommon Sense based solely on Rosie mods.
Sent from my ADR6300 using XDA App

[MOD][ROOT] Change default homescreen - TouchWiz 4.0

Hello,
There's a simple way for those who want to change default homescreen.
You have to be rooted.
So, you first have to download a file explorer that supports root, for example Root Explorer(paid, I use this one).
Then, go to /system and open default.prop with text editor.
Now, add this line:
Code:
ro.csc.homescreen.defaultscreen=3
Where 3 is the number of the default screen you want - 1. So default screen 4 => 3.
Now, just reboot and it should work. If you have any problem/question, feel free to ask.
At first: Sounds great! Thanks!
But:
Afaik (only from some (elder?) videos) it's possible to add and delete home screens. Could you tell me or try what happens if you set this var to e.g. 5 (=> default home screen is 4) but you only have 3 home screens at all? The same has to be considered if you accidentally delete the last home screen and this one is/has been set to default.
Worked perfectly! Thanks for the tweak was missing this feature from my past android phones.
Sent from my GT-I9100 using Tapatalk
Could it be made into a simple apk file?
Even easier - no root required
Sorry to steal your thunder -
Pinch zoom (helicopter mode) longpress & drag will do it.
---
Regards,
Ian
BatterBits said:
Sorry to steal your thunder -
Pinch zoom (helicopter mode) longpress & drag will do it.
---
Regards,
Ian
Click to expand...
Click to collapse
Ian, the point of this mod is so that when you hit your home button, while in your homescreens, it will revert to the 4th screen. Normally when you are in your homescreens and then hit the home button again, it'll revert you to the first screen as default. This is the case even if you change the order of your homescreens using pinch to zoom.
Cool I hoped this was coming. Cant stand being on 1 as the home screen.
Thanks EleCtrOx666!
Works great.
If it is this easy to make the change I don't understand why Samsung didn't include it as an option in one of the configuration menus.
EinPaul said:
At first: Sounds great! Thanks!
But:
Afaik (only from some (elder?) videos) it's possible to add and delete home screens. Could you tell me or try what happens if you set this var to e.g. 5 (=> default home screen is 4) but you only have 3 home screens at all? The same has to be considered if you accidentally delete the last home screen and this one is/has been set to default.
Click to expand...
Click to collapse
Just tried it: it will simply go to the last homescreen you have.
robot1000 said:
Could it be made into a simple apk file?
Click to expand...
Click to collapse
I'll see what I can do.
It worked great with root explorer, but not so much with ES File Explorer -- it does have a "root" mode, but it asks you whether you are using the CyanogenMod or the HiAPK rom.
For n00bs, like myself, it's also worth pointing out that you won't be able to edit the build.prop unless you click on the "mount rw" (read/write) button up at the top first. Afterwards, you'll probably want to click the "mount ro" (read only) at the top again.
Thanks a lot.
poofish said:
Ian, the point of this mod is so that when you hit your home button, while in your homescreens, it will revert to the 4th screen. Normally when you are in your homescreens and then hit the home button again, it'll revert you to the first screen as default. This is the case even if you change the order of your homescreens using pinch to zoom.
Click to expand...
Click to collapse
Well - how stupid do I look now!
Thanks for the explanation - sorry to have intefered, no offence was intended!
Going back to hiding in dark corners....
----
Regards,
Ian
This works beautifully and something I've been pining for after moving from sense. Thanks a lot
I'm not an active Android dev. But isn't there a var you can call and just divide by 2?
Like:
ro.csc.homescreen.defaultscreen = ro.csc.homescreen.screencount/2;
Something like that? Excuse me if this obviously doesn't work, it was just a thought, as it would make it easier and won't require users to change that value whenever they change the amount of homescreens.
How did you find this setting? I'm interested if there are more useful settings like that.
hy EleCtrOx666
i'm a beginner in this so pls have a little patience with me.
I got a SGS2 and i'm interested to know if there's anyway to root the phone without flashing a custom kernel taking in account that u have this "nice" counter on the phone.
Very nice explained how to modif home-screen number.
is it here any way to get temp root?
hi sorry to be a pain, but i would love to be change my default home screen button, I followed the guide, and rooted my phone successfully (i think) and once superuser was installed I went and found the defualtprop file and edited it as guided by adding that line, i clicked save & exit (at which point it tells me it made a backup of the original file) then after I restart the phone it just goes back to normal, like I never touched the file...
anyone know where i'm going wrong?
Thanks, reminds me of my HTC Desire now with homescreen centred
dandumitru said:
hy EleCtrOx666
i'm a beginner in this so pls have a little patience with me.
I got a SGS2 and i'm interested to know if there's anyway to root the phone without flashing a custom kernel taking in account that u have this "nice" counter on the phone.
Very nice explained how to modif home-screen number.
is it here any way to get temp root?
Click to expand...
Click to collapse
This Guide explains how to do it http://forum.xda-developers.com/showthread.php?t=1056334
This doesn't work for me. I can't add that line. I've tried two different text editors and two root explorers (one with an editor built in) and they both say the file can't be saved. No other programs open. I restarted the phone and tried again.
Anybody else have this problem?
Thanks for the help via PM.
In case anyone else had my problem, it was solved by using Root Explorer. Click "Mount R/W", do the edit, save, reboot.
Works perfectly.

A possible working soultion to hide softkeys!

Ok, I understand there are many threads as to softkey management. I, for one would love to hide these soft keys and I think I might have stumbled upon a way that it might work, but because I am not a Dev I myself don't totally understand, how Android works, so hopefully one of the Dev here could help understand what is going on here. So I have been doing a lot of searches to find a way to hide these keys, along the way I stumbled across a few threads where users were loosing their softkeys after using some of the softkey mods, I remember reading some where a user lost his softkeys do to flashing the Deodexed version of the mod while running on a Odexed Rom. I thought I would give this a try I downloaded Deodexed version of the softkey mod from this post:
(http://forum.xda-developers.com/showthread.php?t=1394639&highlight=soft+key) and installed it on my ARHD 2.1.3 Odexed Rom. Behold upon reboot I had full screen! Great! Just a few problems though, I lost not only my softkeys, but also my notification bar at the top. I also could not set any wallpaper but only a live wallpaper. I was able to navigate without any issues as I downloaded and installed Button Savior from the market before installing the modification. Any suggestions from Dev's as to why, how, or if this could work would be great.
Not a dev but I made mine disappear when I was manually editing pngs in SystemUI.apk to mod my softkeys. I must have did something wrong.
I believe adr and his Bamf team are including this in their upcoming rom
I think they are mapping it to power and vol up or down
That would be great! I like the full screen it just looks amazing! I don't mind using Button Savior.
So you suggest removing the softkeys by breaking them and the notification bar..
joshnichols189 said:
So you suggest removing the softkeys by breaking them and the notification bar..
Click to expand...
Click to collapse
No not by breaking them, I was hoping that a Dev would be able to see how or why they get removed and in doing so find a solution to hiding the keys altogether.
Eventually. Took Honeycomb a while. Supposedly the tricks in Honeycomb were patched.
They just need time. They already have abilities to rearrange and select which keys are visible plus themes and all that.
LTE EX Galaxy Nexus - AOSP KANG
Asus Transformer - 3.2.1 OC/UV
Rockstar52 said:
No not by breaking them, I was hoping that a Dev would be able to see how or why they get removed and in doing so find a solution to hiding the keys altogether.
Click to expand...
Click to collapse
They get removed because they are broken
Rockstar52 said:
Ok, I understand there are many threads as to softkey management. I, for one would love to hide these soft keys and I think I might have stumbled upon a way that it might work, but because I am not a Dev I myself don't totally understand, how Android works, so hopefully one of the Dev here could help understand what is going on here. So I have been doing a lot of searches to find a way to hide these keys, along the way I stumbled across a few threads where users were loosing their softkeys after using some of the softkey mods, I remember reading some where a user lost his softkeys do to flashing the Deodexed version of the mod while running on a Odexed Rom. I thought I would give this a try I downloaded Deodexed version of the softkey mod from this post:
(http://forum.xda-developers.com/showthread.php?t=1394639&highlight=soft+key) and installed it on my ARHD 2.1.3 Odexed Rom. Behold upon reboot I had full screen! Great! Just a few problems though, I lost not only my softkeys, but also my notification bar at the top. I also could not set any wallpaper but only a live wallpaper. I was able to navigate without any issues as I downloaded and installed Button Savior from the market before installing the modification. Any suggestions from Dev's as to why, how, or if this could work would be great.
Click to expand...
Click to collapse
- Decompile your framework-res.apk
- Open framework-res.apk\res\values\bools.xml
- Change
Code:
<bool name="config_showNavigationBar">true</bool>
to
Code:
<bool name="config_showNavigationBar">false</bool>
- Recompile, push it to your phone and reboot
Code:
adb push framework-res.apk /system/framework/framework-res.apk
Code:
adb reboot
I don't want to hide my nav bar, I wanna make it transparent.
sent from my googletron
gogodu5sU said:
- Decompile your framework-res.apk
- Open framework-res.apk\res\values\bools.xml
- Change
Code:
<bool name="config_showNavigationBar">true</bool>
to
Code:
<bool name="config_showNavigationBar">false</bool>
- Recompile, push it to your phone and reboot
Code:
adb push framework-res.apk /system/framework/framework-res.apk
Code:
adb reboot
Click to expand...
Click to collapse
Thanks, I will give this a shot. One last question why would the wallpaper stop working?
ChongoDroid said:
I don't want to hide my nav bar, I wanna make it transparent.
sent from my googletron
Click to expand...
Click to collapse
I could dig that.
Sent from my Galaxy Nexus using Tapatalk
ChongoDroid said:
I don't want to hide my nav bar, I wanna make it transparent.
sent from my googletron
Click to expand...
Click to collapse
Actually seems like a pretty nice idea. Does the OS continue to draw behind the buttons, or does the screen effectively stop where they begin?
I would rather a gesture on the softkey bar (flick up/down) to show/hide it. That way you still retain the functionality of the keys, but at the same time you can utilise the full screen when you want to. Remapping these to the hard buttons sounds horrible (unless I misunderstood that?).
If it was transparent and you wanted to click something at the bottom of an app, android wouldn't know whether you wanted to click the app or the buttons.
Jleagle said:
If it was transparent and you wanted to click something at the bottom of an app, android wouldn't know whether you wanted to click the app or the buttons.
Click to expand...
Click to collapse
we already have a transparent status bar successfully mod over in the themes section. and no you dont lose any function. the bar is still there, its just see-thru. so it functions identically to current usage.
anyway hiding the softkeys is something i would love. and google could have been creative, perhaps 3 finger swipe to make them appear, etc. that way 2 finger pinch to zoom wouldnt confuse it with a 3 finger swipe, twist, etc.
Krijs said:
I would rather a gesture on the softkey bar (flick up/down) to show/hide it. That way you still retain the functionality of the keys, but at the same time you can utilise the full screen when you want to. Remapping these to the hard buttons sounds horrible (unless I misunderstood that?).
Click to expand...
Click to collapse
This would be great. I use ADW Ex on my Galaxy Tab 10.1 LTE, and that has a swipe for its lower dock bar works great. When you don't want just swipe down, when needed swipe up.
gogodu5sU said:
- Decompile your framework-res.apk
- Open framework-res.apk\res\values\bools.xml
- Change
Code:
<bool name="config_showNavigationBar">true</bool>
to
Code:
<bool name="config_showNavigationBar">false</bool>
- Recompile, push it to your phone and reboot
Code:
adb push framework-res.apk /system/framework/framework-res.apk
Code:
adb reboot
Click to expand...
Click to collapse
Why Can't i find values in my framework-res.apk? Im on 4.0.4
Im very familiar with android but am stumped on this one.

[MOD] [Sprint] [LG2] [TouchWiz] Add/Remove ICS On Screen Navigation Buttons

I present to you a mod that enables on screen navigation buttons
TouchWiz Only
Downloads
!! Make sure you're not using Cyanogenmod or another AOSP-based ROM !!
!! Make sure you're on an LG2 ROM !! If not, you will need to flash stock again.
Add Buttons
Remove Buttons/Reverse Mod
Flash the zip of your choice in recovery like you would for any ROM
HolySmokesBatty's Disabled Capacitive Button Lights And Home Key Remapped Version
!! Not made by me, made by HolySmokesBatty !!
Add Buttons
Remove buttons/Reverse Mod
Nice and first! Downloading now...
Very nice!
Sent from Mr. Z's Galaxy S3.
yousefak said:
I present to you a mod that enables on screen navigation buttons
TouchWiz Only
Download
!! Make sure you're not using Cyanogenmod or another AOSP-based ROM !!
Add Buttons
Remove Buttons
Flash the zip of your choice in recovery like you would for any ROM
Disable Capacitive Button Lights
If you'd rather have the capacitive button lights off:
Download "Night Mode" from play store
Set slider to 100% and start service
Go to settings
Disable "Minimum brightness" and "notification"
Now it won't mess with your brightness but disable capacitive button backlights
Click to expand...
Click to collapse
Correct me if I'm wrong, but couldn't you just choose the option "always off" in system>display>touch key light duration in order turn off the capacitive button lights?
Sent from my SPH-L710 using xda premium
swampy67 said:
Correct me if I'm wrong, but couldn't you just choose the option "always off" in system>display>touch key light duration in order turn off the capacitive button lights?
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
For some reason, that option disappears after turning on On-screen buttons.
yousefak said:
For some reason, that option disappears after turning on On-screen buttons.
Click to expand...
Click to collapse
Interesting
Sent from my SPH-L710 using xda premium
you can just disable d lights before flashing....works great looks even better...can we get different looks 2 the buttons
joselb said:
you can just disable d lights before flashing....works great looks even better...can we get different looks 2 the buttons
Click to expand...
Click to collapse
I've tried, but the PNG's don't appear to be in res/drawable-hdpi. I'll look through the other folders tomorrow to see if I can find anything.
If I can, I plan on making another mod for Gnex style buttons.
yousefak said:
I've tried, but the PNG's don't appear to be in res/drawable-hdpi. I'll look through the other folders tomorrow to see if I can find anything.
If I can, I plan on making another mod for Gnex style buttons.
Click to expand...
Click to collapse
They are there. I they are in a weird folder but just search for them. Its called like ic_sysbar_home_normal.png but i already tried changing look. And couldnt pull it off. If u do please pist how-to
Sent from my SPH-L710 using XDA App
Edited to remove my douchebaggery.
holysmokesbatty said:
I like how this guy posted our work as his. Oh woe is XDA.
Click to expand...
Click to collapse
Your work?
I followed a guide to do the edits and you probably did too so its none of our works really.
I spent hours figuring out how to successfully recompile framework-res.apk. Then I had to figure out how to get it to boot. Then I had to change the height and figure out how to disable capacitive backlight.
Instead of being selfish, I released my mod to public.
I guess releasing my own work to public was a mistake.
(Oh, and I'll make a video of me decompiling, editing, and building/testing if you don't believe me)
Edit: lol, do you even have a link to your work or do claim I somehow stole your private work?
Sent from my Sprint SGS3
monstaX said:
They are there. I they are in a weird folder but just search for them. Its called like ic_sysbar_home_normal.png but i already tried changing look. And couldnt pull it off. If u do please pist how-to
Sent from my SPH-L710 using XDA App
Click to expand...
Click to collapse
Go to freezas system apk thread and use that to figure out how to decompile/recompile system apps.
Decompile framework-Res.apk. do all of your editing. Then you can recompile and push to /system/framework and boot the phone. If you did everything correctly, the bar at the bottom should reflect the edits.
Sent from my Sprint SGS3
Anybody can do this btw. Decompile framework-res.apk, look for the Navigation bar bool and set it to "true"
If you want different pngs for the buttons you need to look in SystemUI.apk
Here's a blank zip you can use
http://db.tt/mmOQPE5Z
Extract it and add a system folder then add an app folder within it (if modifying anything in /system/app or a /system/framework folder if you modified anything in /system/framework) and place your modified apk's in the appropriate folders
Zip up the META folder and system folder and flash in recovery
Sent from my SPH-L710 using xda premium
fergie716 said:
Anybody can do this btw. Decompile framework-res.apk, look for the Navigation bar bool and set it to "true"
If you want different pngs for the buttons you need to look in SystemUI.apk
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
Yeah, I'm in no way a dev or modder. It just got me annoyed how someone claimed this was his work.
Sent from my Sprint SGS3
yousefak said:
Yeah, I'm in no way a dev or modder. It just got me annoyed how someone claimed this was his work.
Sent from my Sprint SGS3
Click to expand...
Click to collapse
Well it's no one's "work"
Bools are like switches. Anyone can turn them off/on. But yea anyone with the power of Google could do it. No ones specific property
Sent from my SPH-L710 using xda premium
Sweet. Can you disable capacitive buttons though? I heard cm10 can do this.
Can you please post a screenshot?
yousefak said:
Your work?
I followed a guide to do the edits and you probably did too so its none of our works really.
I spent hours figuring out how to successfully recompile framework-res.apk. Then I had to figure out how to get it to boot. Then I had to change the height and figure out how to disable capacitive backlight.
Instead of being selfish, I released my mod to public.
I guess releasing my own work to public was a mistake.
(Oh, and I'll make a video of me decompiling, editing, and building/testing if you don't believe me)
Edit: lol, do you even have a link to your work or do claim I somehow stole your private work?
Sent from my Sprint SGS3
Click to expand...
Click to collapse
Sorry, man. Was half asleep when I saw this, and wasn't exactly rational.
To be fair though, monstaX and I were going back and forth on this over in Themes & Apps over the last couple days, and all progress was very visible there.
http://forum.xda-developers.com/showthread.php?t=1771908
I was gonna package it and post it here (with an additional edit to the /keylayout folder to turn off capacitive keys and remap home to be a camera key) but my wife's car broke down yesterday and I had to deal with that.
Again, I apologize for being a douche. I need to stop using the internet when I'm tired.
holysmokesbatty said:
Sorry, man. Was half asleep when I saw this, and wasn't exactly rational.
To be fair though, monstaX and I were going back and forth on this over in Themes & Apps over the last couple days, and all progress was very visible there.
http://forum.xda-developers.com/showthread.php?t=1771908
I was gonna package it and post it here (with an additional edit to the /keylayout folder to turn off capacitive keys and remap home to be a camera key) but my wife's car broke down yesterday and I had to deal with that.
Again, I apologize for being a douche. I need to stop using the internet when I'm tired.
Click to expand...
Click to collapse
No problem. I apologize for also being hostile in my post too.
Sent from my Sprint SGS3
Just a little reminder: ANDROID IS OPEN SOURCE. I dont like it when people call crap "their own work". All anybody is doing is tweaking the things that are already there.
Sorry, it just frustrates me.

NavBar

I'd like to have a navbar, and disable the hardware buttons. It has been done on older notes by adding "qemu.hw.mainkeys=0" to the build.prop. However, I did it on a themed stock rom (deodexed, rooted, of course), and all I got was the wonderful "System UI has stopped". Any ideas? I hate accidentally hitting menu or back
As a side note, it would be awesome if someone made this work with stock android theme and swipe up from navbar home for Google Now. :fingers-crossed:
T-Mobile Note 3 of course.
Well, I tried modifying the SystemUI.apk to work (same method as the S4), but no matter what I do, SystemUI.apk keeps force closing without even adding qemu.hw.mainkeys=0 to the build.prop.
I was copying META-INF and AndroidManifest.xml from the old apk to the new one, then signing the apk, but no dice. Hmm, there must be a way to enable the NavBar on the Note 3. All the files are in the stock SystemUI, except for the actual button icons. Should the icons go in xxhdpi, or xhdpi (the S4 tutorial stated xhdpi)?
Maybe I just suck at modding apk's. Any ideas?
Also, sorry for bumping my old post, but no one has yet to figure this out
I tried several root apps. Several xposed modules. And several zip packages. Nothing.
Would love this feature as well tried apps and modules as well and a no go a navbar would make the phone perfect to me
Sent from my SM-N900T using XDA Premium 4 mobile app
Quite interested in this as well
Sent from my DragonMOD-N9005 using xda app-developers app
I got it! It isn't nice looking yet, but it works!
Well, I have the buttons more center, but not center. It is the menu button that is pushing everything over to the right. I set the android:layout_weight to 0.0 in the @id:rot0 and @id:rot90 in navigation_bar.xml, but the menu button is still pushing them all over.
Any ideas?
gakio12 said:
Well, I have the buttons more center, but not center. It is the menu button that is pushing everything over to the right. I set the android:layout_weight to 0.0 in the @id:rot0 and @id:rot90 in navigation_bar.xml, but the menu button is still pushing them all over.
Any ideas?
Click to expand...
Click to collapse
How did you get them on? Let me know and I can poke around to see if I can make it behave better in terms of centering.
dwitherell said:
How did you get them on? Let me know and I can poke around to see if I can make it behave better in terms of centering.
Click to expand...
Click to collapse
Well, first I used the attachment from this tutorial here.
To just get it to work with TouchWiz's navbar background, copy everything in the drawable of the tut's attached folder to res/drawable, replacing existing files. Then copy the drawable-xhdpi into res; there isn't a folder named that, so just copy it over. That's all that is needed to make System UI not force close with qemu.hw.mainkeys=0 in the build.prop on the Note 3. Now recompile SystemUI.apk, set permission to rw-r--r-- and replace the old SystemUI.apk on the phone.
Well I have them centered in portrait, haven't worked on landscape yet. I just copied the first LinearLayout from the Nexus 5 into the navigation_bar.xml, and made all the resources point to the touchwiz equivalents. I have stock android nav buttons because I was trying something
You can decompile the SystemUI.apk I attached and look at my changes to navigation_bar.xml. Keep in mind my SystemUI.apk is from Jedi Elite ROM, but it is pretty much stock so I don't see it ruining anything on another stock rom, except for any theming.
I think what I am going to do is just port the AOSP navigation_bar.xml. I have no idea why the nav buttons don't want to be centered in TouchWiz, other than they lack spacers in the xml. Probably easier to just port it anyway.
Write up here.

Categories

Resources