ListFragment is one of the specialized Fragment classes which has, by default, a ListView as its content view.
ListFragment is one of the specialized Fragment classes which has, by default, a ListView as its content view. The ListFragment can be customized as desired but a ListView
with the id android.R.id.list
(or android:id="@android:id/list"
for an xml layout) must be present in the content view used for the ListFragment. The methods that are present in a ListActivity (like getListView() and setListAdapter()) are available in a ListFragment.
More information about the ListFragment
can be found in its documentation.