Adapter equivalent to C (Controller, controllers),
The ListView is equivalent to V (view) for displaying data
A list that provides data to the ListView, an array or a database equivalent to M (model) in MVC mode
The ListView only knows that the data displayed is from Adapter and does not know whether it is from an array or a list object. For the data, only know that the data is used in the adapter inside,
There are three ways of these values: Arrayadapter, Simpleadapter, Simplecursoradapter
Arrayadapter is the simplest kind of adapter, which is a string value that can only be displayed in the ListView text message.
Simpleadapter is a custom data source, to customize the layout way, you can place pictures, buttons, text and so on.
Simplecursoradapter data comes from the database.
Onitemselectedlistener list item is selected when triggered
Onitemclicklistener When you click the list to trigger
By default, the first item is selected. You can use Listview.setselection (6) To set the 7th item selected
Add a quick slide slide bar.
Add android:fastscrollenabled= "True" inside the XML ListView. There must be at least 4 scrolling pages to have a quick slide bar
Android--listview Click events