vendredi 2 janvier 2015

[Q] Problem shifting Statusbar to bottom topic

12:25






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
 

















Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top