How to use two custom list views on one activity in android?
<p>I am trying to show two custom listviews on one activity. I use following XML code.</p>

<pre><code>&lt;LinearLayout android:orientation="horizontal"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"&gt;

&lt;ListView android:id="@+id/list1"
        android:layout_width="0dp"
        android:layout_weight="0.5"
        android:layout_height="fill_parent" /&gt;

    &lt;ListView android:id="@+id/list2"
        android:layout_width="0dp"
        android:layout_weight="0.5"
        android:layout_height="fill_parent" /&gt;

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

<p>Source Code:</p>

<pre><code>ListView list1 = (ListView) findViewById(R.id.list1);
ListView list2 = (ListView) findViewById(R.id.list2);
</code></pre>

<p>but the list view is not populated.
        i am new in android. please help me
        Thanks </p>
