Senior Member - OP
Thanks Meter 34
Posts: 370
Join Date: Jan 2012
Location: Gates County, NC
|
Quote:
Originally Posted by Jayydude_SGP
A friend if mine noticed that there wasn't a difference between 129 dpi and 128 dpi. I knew on 129 it didn't fc but didn't notice that it worked just as well as 128  I was going to direct you to a thread this guy gave me instructions on how to mod the apex launcher so that when we get the bottom status bar it would look good. He modded it for the nexus but their dpi is set to 192. And I'm not good enough at dev'ing to mod it. So can you take a look and give it a shot? And will me pulling the systemui.apk from a tablet ROM give us the bottom status bar with the ICS buttons?
Sent from my Galaxy Nexus Player Tab ^_^
|
[EDIT] here's what he told me
jay,
couldn't do it blind anyway, hacking smali was more like trial and error. i sat one night and adb-pushed countless of times to see if changes were reflected or not. you'll be better off grabbing apktool (1-2 pages before you'll find a working version), learning dalvik-opcode basics and just hack it.
what i did was:
1. find everything that contains "density" and hardcode it. you'll be looking out for displaymetrics api's. density is a float, look up the manual and calculate it. make sure you encode it properly, use an IEEE 754 converter. denditydpi is an int which can be either 160, 240 or 320. scaleddensity, same as density.
2. half of the app drawer will be wasted. i had to kill a switch somehere to help it, but i dont find it because i trashed the rewritten smali by accident and my comments are gone. i studied the original launcher2 java code to find it. not so important for now.
3. you'll get the dock back by changing launcher.xml in the res files. take the original one and copy it over the one in the dpi600 folder. port and landscape need different implementations.
4. all the relevant sizes and styles were in dpi600.
im sorry it's such a mess. a real dev would have written down the pieces of code to change but im a newb and that's all that i can offer you.
Sent from my Galaxy Nexus Player Tab ^_^
|