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:
	
	
I tried already to override the resource "status_bar_height" with "0", but without success (Not found):
	
	
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!
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;
                                }
                        });
        }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));
    }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!

0 commentaires:
Enregistrer un commentaire