title: ListView 2 rows and icon per Item in Android
body: <p>Hy,
  I want to add an icon and 2 rows in one item of ListView. First will be values and second will be values2</p>
  
  <pre><code>String[] values = new String[] { "Android", "iPhone", "WindowsMobile",
              "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X",
              "Linux", "OS/2" };
  String[] values2 = new String[] `enter code here`{ "Android2", "iPhone2",        "WindowsMobile2",
              "Blackberry2", "WebOS2", "Ubuntu2", "Windows72", "Max OS  X2",
              "Linux2", "OS/22" };
  </code></pre>
  
  <p>My xml for list is :</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="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
  &lt;ListView
      android:id="@+id/list"
      android:layout_width="match_parent"
      android:layout_height="wrap_content" &gt;
  &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>My xml for each row is :</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="wrap_content"
  android:layout_height="wrap_content" &gt;
  
  &lt;ImageView
      android:id="@+id/icon"
      android:layout_width="22px"
      android:layout_height="22px"
      android:layout_marginLeft="4px"
      android:layout_marginRight="10px"
      android:layout_marginTop="4px"
      android:src="@drawable/ic_launcher" &gt;
  &lt;/ImageView&gt;
  
  &lt;TextView
      android:id="@+id/label"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@+id/label"
      android:textSize="20px" /&gt;
  
  &lt;TextView
      android:id="@+id/label2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="@+id/label" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And my code is :</p>
  
  <pre><code> public class listaNoua extends ListActivity {
  public void onCreate(Bundle icicle) {
      super.onCreate(icicle);
      String[] values = new String[] { "Android", "iPhone", "WindowsMobile",
              "Blackberry", "WebOS", "Ubuntu", "Windows7", "Max OS X",
              "Linux", "OS/2" };
      String[] values2 = new String[] { "Android2", "iPhone2", "WindowsMobile2",
              "Blackberry2", "WebOS2", "Ubuntu2", "Windows72", "Max OS X2",
              "Linux2", "OS/22" };
  
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;  (this,R.layout.rowlayout, R.id.label2, values2);
      setListAdapter(adapter);
  
  }
  </code></pre>
  
  <p>If i add :</p>
  
  <pre><code>   ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.rowlayout,   R.id.label2, values2 , R.id.label, values);
  </code></pre>
  
  <p>The code does not work</p>
  
  <p>Can anybody help me ? </p>