I added a button to my webview, but the button is partially hidden behind the smartphone.
I draw a red rectangle into the following screenshot, this is the real size of the display, why is the webview area bigger than the display size?? I have to move the button way higher so that it is not out of display.
In xCode (iOS) there is "safe area" which is visible area of the display without status bar and bottom bar, is there something similar in Android Studio?
How can I fix this?
I am running Android Studio 3.4.2
activity_fullscreen.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/relativeLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="visible"
tools:context="de.blizz_z.onlineshop.FullscreenActivity">
<Button
android:id="@+id/backButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:layout_marginLeft="32dp"
android:layout_marginBottom="20dp"
android:text="Zurück"
app:layout_constraintBottom_toBottomOf="@+id/blizzView"
app:layout_constraintStart_toStartOf="@+id/blizzView" />
<WebView
android:id="@+id/blizzView"
android:layout_width="412dp"
android:layout_height="844dp"
android:keepScreenOn="true"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</WebView>