Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid FrameLayout not filling screen
    primarykey
    data
    text
    <p>I'm currently creating my layout for an activity with xml and the content (FrameLayout) should fill the whole screen. Unfortunately, it doesn't. Only if I change the margin to following, it works:<br> Left: -17dp<br> Right: -19dp<br> Top: -16dp<br> Bottom: -18dp<br> <br> But that's not the intention. It seems like that the screen has a basic padding.<br> Are there any ways to fix this?</p> <p><img src="https://i.stack.imgur.com/no4Kl.png" alt="Screen"></p> <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main_layout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/registration_bg" android:fillViewport="true" android:padding="0dp" tools:context=".MagnetScreen" &gt; &lt;LinearLayout android:id="@+id/main_interface" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginBottom="18dp" android:layout_marginLeft="17dp" android:layout_marginRight="19dp" android:layout_marginTop="16dp" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/registration_headline" style="@style/registration" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/registration_headline" android:textAppearance="?android:attr/textAppearanceLarge" android:textSize="@dimen/extra_large" android:textStyle="bold" /&gt; &lt;/LinearLayout&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload