Why does my send button keep overlapping my edit text?

OliverTwist

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---

Button Over Lapping Edit Text Box

Here is the activity_main.xml file:

<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" >      

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

    <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" >

        <requestFocus />
    </EditText>

    <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" />

    <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" />

    <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" />

    <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" />

    <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" />

</RelativeLayout> 

</ScrollView>

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?

Thank you in advance!

Manishika

You haven't specified the correct positioning of Button

Add android:layout_below="@+id/etAdd" to your button

<Button
        android:id="@+id/send"
        android:layout_width="match_parent"
        android:layout_height="125dp"
        android:layout_below="@+id/etAdd"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:text="Send" />

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Why does my send button keep overlapping my edit text?

From Dev

Why does my text keep moving my image down?

From Dev

Why does my text file keep overwriting the data on it?

From Dev

Why does my text file keep overwriting the data on it?

From Dev

Why my button is not showing the text?

From Dev

Does not send my value from button and text over to my js file

From Dev

Why does my button not click?

From Dev

Text overlapping in my sidebar

From Dev

Putting my edit-text and button in the middle of my layout

From Dev

Why my edit text is not filtering listview

From Dev

Why does my edit/update route break?

From Dev

Why my text does not blink?

From Dev

Why does .lesshst keep showing up in my ~

From Dev

Why does my umask keep resetting to 000?

From Dev

Why does my image keep repeating itself?

From Dev

Why does my CPU usage keep spiking?

From Dev

Why does my CPU usage keep spiking?

From Dev

Why does my computer keep switching on?

From Dev

Why does my umask keep resetting to 000?

From Dev

Why does my laptop keep shutting down?

From Dev

Why does my ActionListener keep repeating?

From Dev

Why does my accordion list keep closing?

From Dev

Why does my monitor keep cutting out?

From Dev

Why does upstart keep respawning my process?

From Dev

Why does the time on my laptop keep changing?

From Dev

Why does my code keep throwing a KeyError?

From Dev

Why does my vba code keep freezing?

From Dev

Why does my batch file keep on closing?

From Dev

Why does my express router crash only when i send a JSON and not when i send a text ?