Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does my send button keep overlapping my edit text?
    primarykey
    data
    text
    <p>I have a scrollview with a relative layout inside of it. When I have the relative layout height set to match_parent it does this to the graphical layout and I do not know why it's doing this. ---PICTURE BELOW--- </p> <p><img src="https://i.stack.imgur.com/tT5YA.jpg" alt="Button Over Lapping Edit Text Box"></p> <p>Here is the activity_main.xml file:</p> <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" &gt; &lt;RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;EditText android:id="@+id/etName" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignLeft="@+id/textView1" android:layout_below="@+id/textView1" android:ems="10" android:hint="First and Last Name" android:inputType="textPersonName" &gt; &lt;requestFocus /&gt; &lt;/EditText&gt; &lt;EditText android:id="@+id/etPhone" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/etName" android:layout_marginTop="14dp" android:ems="10" android:hint="Enter Phone #" android:inputType="phone" /&gt; &lt;EditText android:id="@+id/etEmail" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/etPhone" android:layout_marginTop="17dp" android:ems="10" android:hint="Enter E-mail" android:inputType="textEmailAddress" /&gt; &lt;EditText android:id="@+id/etAdd" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/etEmail" android:layout_marginTop="18dp" android:ems="10" android:hint="Additional Information" android:lines="5" android:inputType="textMultiLine" /&gt; &lt;TextView android:id="@+id/textView1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignLeft="@+id/etPhone" android:layout_alignParentTop="true" android:gravity="center" android:text="Contact Form" android:textAppearance="?android:attr/textAppearanceMedium" /&gt; &lt;Button android:id="@+id/send" android:layout_width="match_parent" android:layout_height="125dp" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:text="Send" /&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre> <p>I have also tried to set the scroll view width and height to fill_parent and it still does the same thing. What am I doing wrong?</p> <p>Thank you in advance!</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.
    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