All the samples I have seen on ListView using fragment extends from ListFragment. In my case, as I extend my fragment from a base fragment (which cannot inherit from ListFragment), I cannot use ListFragment. Is there a way (or an example) on the below.
- Fragment which does not inherit from ListFragment
- This fragment displays a list of items populated through ArrayAdapter
- I will use a viewholder to display custom layout for each item.
Put a
ListViewin your fragment’s XML file