The listview displays data and requires three points:
1. ListView: The view used to display the list.
2, Adapter: Used to map data to the ListView, it is considered to be connected to the ListView and Data Bridge
3. Data: The specific string, picture, or base component that will be mapped.
How does the system draw the ListView?
1. First use the GetCount () function to get the length of the list to be drawn;
2. Then start drawing: Call the GetView () function. In this function first obtain a view (this view, if a simple display is a view, if it is a custom containing a lot of controls when it is actually a viewgroup), and then instantiate and set the individual components and their data content and display it. Each view is plotted according to the value returned by the GetCount () function;
For the use optimization of the ListView, everyone's first response estimates are to use Viewholder (by using a static class to reduce the load times of the view and fully reuse).
And then release the picture in time;
Android-listview Data Loading Supplement