The previous post, Create List Using ListView was about displaying an array of a list. It dealt with only one element in a list item. In order to display a List with multiple views in a list item, BaseAdapter could be used. A ListView using BaseAdapter could display a List with multiple views in it.
In this tutorial, we are going to create ListView using BaseAdapter. So, this tutorial covers following points.
– Create custom BaseAdapter, and
– Inflating a custom view as the list item.
Talking about the scenario where there is a need to display a list. This may be the list of options from which a user has to choose, or like a list of contact numbers. The list could be for displaying purpose or for choosing options from it.