User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: [Q] Problem shifting Statusbar to bottom topic

[Q] Problem shifting Statusbar to bottom topic






Hi all,

I tried (partially succesful) to shift the status bar to the bottom of the screen. Unfortunatelly a black rectangle at the former statusbar position stays and keeps the apps away to use the full space (see picture below).

Here is my code so far:

Code:


public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {
        if (!lpparam.packageName.equals("com.android.systemui"))
            return;
        else {
                XposedHelpers.findAndHookMethod("com.android.systemui.statusbar.phone.PhoneStatusBar", lpparam.classLoader, "getStatusBarGravity", new XC_MethodReplacement() {
                                  @Override
                                protected Object replaceHookedMethod(MethodHookParam param) {
                                        return Gravity.BOTTOM | Gravity.FILL_HORIZONTAL;
                                }
                        });
               
                XposedHelpers.findAndHookMethod("com.android.systemui.statusbar.phone.PhoneStatusBar", lpparam.classLoader, "getStatusBarHeight", new XC_MethodReplacement() {
                                  @Override
                                protected Object replaceHookedMethod(MethodHookParam param) {
                                          return 65;
                                }
                        });
        }


I tried already to override the resource "status_bar_height" with "0", but without success (Not found):

Code:


    @Override
    public void initZygote(StartupParam startupParam) throws Throwable {
            String        MODULE_PATH = startupParam.modulePath;
        XModuleResources modRes = XModuleResources.createInstance(MODULE_PATH, null);
        XResources.setSystemWideReplacement("android", "dimension", "status_bar_height", modRes.fwd(R.dimen.my_height));
    }


The XPosed-Modul Dimension Editor also doesn't work by the way.

Maybe I could somehow make some magic in the PhoneWindowManager.java to let the apps fill till the screen top, but I don't know how.

Further information: Dirty Unicorn ROM for Galaxy Note N7000 KitKat.

Thank you very much!








Attached Thumbnails


Click image for larger version<br/><br/>Name:	Screenshot_2015-01-02-20-49-25.jpg<br/>Views:	N/A<br/>Size:	54.3 KB<br/>ID:	3094514
 

















Aucun commentaire:

Enregistrer un commentaire