title: Android layout: One image & Two EditText views per row
body: <p>I am having difficulty in setting a layout for my activity. I am trying to achieve a list layout, with each row on the list containing and Icon, and 2 EditText views beside each icon.</p>
  
  <p>For example, a GMail icon, and user can enter their email and password into the view.</p>
  
  <p>I've tried a couple of approaches and cannot seem to get one working. The closest I've come is one EditText view per row but this is not what I am trying to achieve.</p>
  
  <p>Here's a look at my xml. If anyone has any suggestions on how I can improve that would be great.</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:padding="5dp" &gt;
      &lt;RelativeLayout &gt;
          &lt;ImageView
              android:id="@+id/logo"
  
              android:layout_width="150px"
              android:layout_height="150px"
  
              android:layout_alignParentTop="true"
              android:layout_alignParentBottom="true"
  
              android:src="@drawable/gm" &gt;
          &lt;/ImageView&gt;
          &lt;EditText
              android:id="@+id/secondLine"
              android:layout_width="200dp"
              android:layout_height="wrap_content"
  
              android:layout_alignRight="@id/logo"
              android:layout_alignParentBottom="true"
              android:layout_alignParentRight="true"
              &gt;
          &lt;/EditText&gt;
          &lt;EditText
              android:id="@+id/firstLine"
              android:layout_width="200dp"
              android:layout_height="wrap_content"
              android:layout_alignRight="@id/logo"
              android:layout_alignParentBottom="true"
              android:layout_alignParentRight="true"
              android:layout_above="@id/secondLine"&gt;
          &lt;/EditText&gt;
      &lt;/RelativeLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>