Detect display cutout on Android in Cordova // Ionic
up vote
0
down vote
favorite
is there any method, to detect the display cutout, like an Iphone has it, for and android device like a Huawei P20?
For ios, i use
padding:
env(safe-area-inset-top)
env(safe-area-inset-right)
0
env(safe-area-inset-left)
Is there an equivalent for Android?
In an android Emulator with notch on top, these css property are marked is invalid.
Many Thanks
android angular css3 cordova ionic3
add a comment |
up vote
0
down vote
favorite
is there any method, to detect the display cutout, like an Iphone has it, for and android device like a Huawei P20?
For ios, i use
padding:
env(safe-area-inset-top)
env(safe-area-inset-right)
0
env(safe-area-inset-left)
Is there an equivalent for Android?
In an android Emulator with notch on top, these css property are marked is invalid.
Many Thanks
android angular css3 cordova ionic3
Trypublic WindowInsets replaceSystemWindowInsets (int left, int top, int right, int bottom)
for more info: developer.android.com/reference/android/view/…
– Suryan
Nov 11 at 0:50
@Suryan How to use that in an ionic app???
– user998163
Nov 11 at 12:12
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
is there any method, to detect the display cutout, like an Iphone has it, for and android device like a Huawei P20?
For ios, i use
padding:
env(safe-area-inset-top)
env(safe-area-inset-right)
0
env(safe-area-inset-left)
Is there an equivalent for Android?
In an android Emulator with notch on top, these css property are marked is invalid.
Many Thanks
android angular css3 cordova ionic3
is there any method, to detect the display cutout, like an Iphone has it, for and android device like a Huawei P20?
For ios, i use
padding:
env(safe-area-inset-top)
env(safe-area-inset-right)
0
env(safe-area-inset-left)
Is there an equivalent for Android?
In an android Emulator with notch on top, these css property are marked is invalid.
Many Thanks
android angular css3 cordova ionic3
android angular css3 cordova ionic3
asked Nov 11 at 0:39
user998163
126421
126421
Trypublic WindowInsets replaceSystemWindowInsets (int left, int top, int right, int bottom)
for more info: developer.android.com/reference/android/view/…
– Suryan
Nov 11 at 0:50
@Suryan How to use that in an ionic app???
– user998163
Nov 11 at 12:12
add a comment |
Trypublic WindowInsets replaceSystemWindowInsets (int left, int top, int right, int bottom)
for more info: developer.android.com/reference/android/view/…
– Suryan
Nov 11 at 0:50
@Suryan How to use that in an ionic app???
– user998163
Nov 11 at 12:12
Try
public WindowInsets replaceSystemWindowInsets (int left, int top, int right, int bottom)
for more info: developer.android.com/reference/android/view/…– Suryan
Nov 11 at 0:50
Try
public WindowInsets replaceSystemWindowInsets (int left, int top, int right, int bottom)
for more info: developer.android.com/reference/android/view/…– Suryan
Nov 11 at 0:50
@Suryan How to use that in an ionic app???
– user998163
Nov 11 at 12:12
@Suryan How to use that in an ionic app???
– user998163
Nov 11 at 12:12
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244811%2fdetect-display-cutout-on-android-in-cordova-ionic%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Try
public WindowInsets replaceSystemWindowInsets (int left, int top, int right, int bottom)
for more info: developer.android.com/reference/android/view/…– Suryan
Nov 11 at 0:50
@Suryan How to use that in an ionic app???
– user998163
Nov 11 at 12:12