title: Android align textview and edittext
body: <p>In the following xml file.i am trying to align the contents.i.e, first textview followed by the edittext and so on in the next line.But tight now the text is imposed one on another how to resolve this issue. </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" &gt;
  
  
        &lt;RelativeLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0.70" &gt;
  
  
  
            &lt;TextView
                android:id="@+id/hostname"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBaseline="@+id/ip"
                android:layout_alignParentLeft="true"
                android:text="hostname" /&gt;
  
  
            &lt;EditText
                android:id="@+id/ip"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentLeft="true"
                android:layout_alignParentTop="true"
                android:layout_marginLeft="39dp"
                android:ems="10"
                android:inputType="textEmailAddress" &gt;
  
            &lt;/EditText&gt;
  
  
     &lt;TextView
                android:id="@+id/username"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBaseline="@+id/ip"
                android:layout_alignBottom="@+id/ip"
                android:layout_alignParentLeft="true"
                android:text="Hostname" /&gt;
            &lt;EditText
                android:id="@+id/username"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignLeft="@+id/editText1"
                android:layout_below="@+id/ip"
                android:layout_marginLeft="45dp"
                android:layout_marginTop="42dp"
                android:ems="10" /&gt;
  
             &lt;TextView
                android:id="@+id/password"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBaseline="@+id/hostname"
                android:layout_alignBottom="@+id/username"
                android:layout_alignParentLeft="true"
                android:text="Password" /&gt;
            &lt;EditText
                android:id="@+id/password"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/password"
                android:layout_centerHorizontal="true"
                android:layout_marginTop="47dp"
                android:ems="10"
                android:inputType="textPassword" /&gt;
  
  
        &lt;/RelativeLayout&gt;
  
    &lt;/LinearLayout&gt;
  </code></pre>