ListFragment how to get the listView?
<p>I'm porting my app from AsyncTasks to Fragements.</p>

<p>But how can I access the listView (id: list) element within my fragment?</p>

<pre><code>class MyFragment extends ListFragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View v = inflater.inflate(R.layout.list_fragment, container, false);
        ListView listView = getListView(); //EX: 
        listView.setTextFilterEnabled(true);
        registerForContextMenu(listView);
        return v;
    }
}
</code></pre>

<p>xml:</p>

<pre><code>        &lt;ListView
        android:id="@android:id/list"
        android:layout_width="match_parent"
        android:layout_height="match_parent" &gt;
    &lt;/ListView&gt;
</code></pre>

<p>Ex:</p>

<pre><code>Caused by: java.lang.IllegalStateException: Content view not yet created
</code></pre>
