title: Use array adapter with more views in row in listview
body: <p>I have stumbled upon a problem I can't quite get my head around, so I was hoping perhaps someone here have had the same problem or knew a good way of solving the problem. </p>
  
  <p>I have created a view containing a ListView. This ListView contains two TextView. 
  The problem is that I don't know where I send the values which are meant to go in the second text view using the ArrayAdapter. Is there a way to send with more information to the ArrayAdapter so that I can feed the "todaysmenu" TextView?</p>
  
  <p>The ArrayAdapter method:</p>
  
  <pre><code>private void createList() {
      ListView lv = (ListView) findViewById(R.id.mylist);
      String[] values = new String[] { "Android", "Linux", "OSX", 
              "WebOS", "Windows7", "Ubuntu", "OS/2"
      };
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.rowlayout, R.id.restaurantname, values);
      lv.setAdapter(adapter);
  }
  </code></pre>
  
  <p>The row markup:</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="wrap_content"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/restaurantname"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@+id/restaurantname"
          android:textSize="23dp" &gt;
  
      &lt;/TextView&gt;
  
      &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:text="@+id/todaysmenu" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The activity layout:</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;ListView
      android:id="@+id/mylist"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"&gt;
      &lt;/ListView&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>At the beginning I got everything to work, but when I added the second textfield problems arouse. In advance, thank you for your help! </p>