Two line - single item inside a list view - how to?
<p>How do i do it? i've searched and looked and still haven't found anything usefull for me.</p>

<p>I currently have 2 arraylist.
first one includes Strings of calculations i got from a previous activity.
second one includes Doubles of results of the above mentioned calculations i got from a  previous acitivty.</p>

<p>I've saved both Arraylists in SQLLITE database.</p>

<p>The best i got so far is:</p>

<p>inside onCreate:</p>

<pre><code>SimpleAdapter adapter = new SimpleAdapter(this, list,
            R.layout.custom_row_view,
            new String[] { "operationName", "operationValue" }, new
                            int[] { R.id.text1,R.id.text2 });
populateList();
setListAdapter(adapter);
</code></pre>

<p>inside a function - populateList(); :</p>

<pre><code>static final ArrayList&lt;HashMap&lt;String, Double&gt;&gt; list = new ArrayList&lt;HashMap&lt;String, Double&gt;&gt;();

private void populateList() {

HashMap&lt;String, Double&gt; temp = new HashMap&lt;String, Double&gt;();
for (int i = 1; i &lt;= 20; i++) {
    temp.put(operationNames.get(i), operationValues.get(i));
}

list.add(temp);
}
</code></pre>

<p>EDIT:
The custom_row_view .xml:</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;TextView
    android:id="@+id/tv1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#CBC300"
    android:textSize="16sp"
    android:textStyle="bold" /&gt;

&lt;TextView
    android:id="@+id/tv2"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#3200A3"
    android:textSize="16sp"
    android:textStyle="bold" /&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>What am i missing here? it keeps crashing when entering this specific listactivity.</p>

<p>Any help will be really appreciated.</p>
