XML layout has a ListView - But still getting ListView id not found exception
<p>I see a lot of questions being asked in the stackoverflow on the same topic, but i <code>could not understand the deep problem</code> of the exception. </p>

<p>Below is my XML layout. I have a listView.</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="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" android:background="#FFFFFF"&gt;

    &lt;ListView
        android:id="@+id/list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#656565"
        android:paddingLeft="@dimen/list_padding"
        android:paddingRight="@dimen/list_padding" 
        android:dividerHeight="20.0sp"
        android:divider="#656565"/&gt;

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

<p>Below is my Fragment class. </p>

<pre><code>public class FragmentClass extends SherlockListFragment implements AsyncListner{

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {     
           return inflater.inflate(R.layout.documents, container, false);
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState){

    }

      @Override
      public void onLoadComplete(List&lt;DocumentResponse&gt; data) {           
          DocumentsAdapter adapter = new DocumentsAdapter(getSherlockActivity(),
                    R.id.list, data);
          setListAdapter(adapter);
      }

}
</code></pre>

<p>Once the onLoadComplete call is finished, i am trying to create my ListView. But i get this error. "<strong>Your content must have a ListView whose id attribute is android.R.id.list</strong>"</p>
