Basic of ListView-data adapter resolution and listview Adapter
Data adapter:
Purpose: Fill in complex data (array, linked list, database, set, etc.) on the specified view interface.
ArrayAdapter (array adapter): used to bind a single data format
Array Source: can be a set or Array
ArrayAdapter (context, the layout file and data source corresponding to each list item loaded by the current ListView ).
SimpleAdapter: used to bind complex data.
Data source: can only be a set of specific generic types
SimpleAdapter (context, a list set composed of a Map of the data source (each Map will correspond to a row in the listview list, the keys in each Map key-value pair must contain all the keys specified in from, the file resources corresponding to resours, from (the key name of Map ), to bind the data view ID and from
The data adapter serves as a bridge between the data source and the View Interface.
Implementation process: Create an adapter-Add a data source to the adapter-load the adapter in the view