title: Android: align items of a Listview
body: <p>I have a listview and I would like to have the following structure:</p>
  
  <p><a href="https://stackoverflow.com/questions/14821152/how-to-align-imageview-in-listview-android">link to example image</a></p>
  
  <p>I have several problems: the text is not aligned with the image, the right image disappears in some items, 2 lines are not show... I need help please. 
  This is my code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:layout_alignParentTop="true"
  android:background="@drawable/listview_naranja"
  android:orientation="horizontal"
  android:padding="5dip" &gt;
  
  &lt;LinearLayout
      android:id="@+id/thumbnail"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true"
      android:layout_marginRight="5dip"
      android:padding="3dip"
      android:paddingTop="5dip" &gt;
  
      &lt;ImageView
          android:id="@+id/imagenListview"
          android:layout_width="100dip"
          android:layout_height="100dip" /&gt;
  &lt;/LinearLayout&gt;
  
  &lt;TextView
      android:id="@+id/textoListviewNombre"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignTop="@+id/thumbnail"
      android:layout_toRightOf="@+id/thumbnail" /&gt;
  
  &lt;TextView
      android:id="@+id/textoListviewTipo"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_below="@id/textoListviewNombre"
      android:layout_marginTop="1dip"
      android:layout_toRightOf="@+id/thumbnail" /&gt;
  
  &lt;ImageView
      android:id="@+id/imagenVisto"
      android:layout_width="40dp"
      android:layout_height="40dp"
      android:layout_gravity="center_vertical"
      android:paddingLeft="3dp"
      android:paddingRight="3dp" /&gt;
  
  &lt;ImageView
      android:id="@+id/imagenVisto"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_alignParentRight="true"
      android:layout_centerVertical="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>thanks</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>New code posted. My textoListviewNombre not alignTop with my thumbnail and my imagenVisto appears on my thumbnail</p>