How to call setListAdapter for ListView contained in a Fragment
<p>All the examples I see of <code>ListView</code>'s tend to be either implementations of <code>ListActivity</code> or <code>ListFragment</code>, where <code>setListAdapter()</code> is called in the <code>onCreate()</code> event.</p>

<p>However, I want to have a <code>ListView</code> contained within another <code>Fragment</code>, I don't want to have the <code>ListView</code> as the <code>Fragment</code> itself...if you know what I mean.</p>

<p>I want to know if I have xml for my <code>Fragment</code> like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#ffffff"
    android:textSize="40sp"
    &gt;

    &lt;ListView android:id="@+id/left_menu" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;
    &lt;/ListView&gt;

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

<p>How do you call <code>setListAdapter</code> for the list view in the fragment class? I have seen an example where a <code>ListView</code> is contained in an <code>Activity</code> and you call <code>findViewById()</code> to get the <code>ListView</code> object and then call <code>setListAdapter()</code>.</p>

<p>However, the <code>Fragment</code> class doesn't have the <code>findViewById</code> method so how do you get a reference to the <code>ListView</code> object?</p>
