8. Getting Started with a ListView
"1" defines the ListView in the layout
"2" defines the data adapter for the ListView
The GetCount method and GetView method of "3" realizing Baseadapter
ListView displays more data volume out of memory error
1 //ListView Displays more data volume out of memory error2 if(Convertview = =NULL){3 //Create a new View object4TV =NewTextView (mainactivity. This;5}Else{6 //reusing historical cache objects7TV =(TextView) Convertview;8}
9, the ListView display data principle
Javaweb:
Mvc=mode Data View view (JSP) Controler (servlet)
Android:
M:mode data (JavaBean) View:listview C:adapter
10. Optimized efficiency of the ListView
ListView Layout Height If configured as Wrap_content, the system will not stop adapting the check height
ListView Layout Height with match_parent for increased efficiency
Android Learning Note "01"