I browsed through every other same/similar question:
Android: Your content must have a ListView whose id attribute is android.R.id.list
Your content must have a ListView whose id attribute is 'android.R.id.list'
None of it helped.
The difference is that my Activity doesn't extend ListActivitiy (which seemed to be the problem in the above cases).
My activity extends FragmentActivity (and I can't really change this to Activity because I have dependencies).
public class MainActivity extends FragmentActivity
... ListView
<ListView
android:id="@+id/list"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:divider="#b5b5b5"
android:dividerHeight="1dp"
android:listSelector="@drawable/list_selector" >
</ListView>
... Fragment view.
<fragment
android:id="@+id/contentFragment"
android:name="com.landa.fragment.ContentFragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_below="@+id/include1" />
I also tried changing the 'id' format of the ListView as suggested in the above questions - Android doesn't agree with that notation.
Content fragment extends ListFragment:
public class ContentFragment extends ListFragment {
How can I fix this?