Sorry, I use the translator, hoping to clarify my question
My app originally worked fine, but as long as a third-party full-screen advertisement was displayed, the app would be misaligned. What can I do to resolve this!
My app is in Activity_ The setup code used in Create is as follows:
Thank you very much for your help!
My app originally worked fine, but as long as a third-party full-screen advertisement was displayed, the app would be misaligned. What can I do to resolve this!
My app is in Activity_ The setup code used in Create is as follows:
B4X:
#if JAVA
public void setToumingtitle() {
Window window = getWindow();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
window.setStatusBarColor(Color.TRANSPARENT);
View decorView = window.getDecorView();
int systemUiVisibility = decorView.getSystemUiVisibility();
systemUiVisibility &= ~View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION;
decorView.setSystemUiVisibility(systemUiVisibility);
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
}
#end if