We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
主要是hauwei vivo oppo高版本会出这样的问题 重写dialog的show方法即可 @OverRide public void show() { super.show(); String brand = Build.BRAND; if (!TextUtils.isEmpty(brand) && (brand.toLowerCase().contains("huawei") || brand.toLowerCase().contains("vivo") || brand.toLowerCase().contains("oppo"))) { Window window = getWindow(); window.getDecorView().setPadding(0, 0, 0, 0); LayoutParams layoutParams = window.getAttributes(); layoutParams.width = LayoutParams.MATCH_PARENT; layoutParams.height = LayoutParams.MATCH_PARENT; window.setAttributes(layoutParams); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
主要是hauwei vivo oppo高版本会出这样的问题
重写dialog的show方法即可
@OverRide
public void show() {
super.show();
String brand = Build.BRAND;
if (!TextUtils.isEmpty(brand) && (brand.toLowerCase().contains("huawei") || brand.toLowerCase().contains("vivo")
|| brand.toLowerCase().contains("oppo"))) {
Window window = getWindow();
window.getDecorView().setPadding(0, 0, 0, 0);
LayoutParams layoutParams = window.getAttributes();
layoutParams.width = LayoutParams.MATCH_PARENT;
layoutParams.height = LayoutParams.MATCH_PARENT;
window.setAttributes(layoutParams);
}
}
The text was updated successfully, but these errors were encountered: