What is the difference between Spinner and ListView?

Both have a data source (or adapter). It seemed to me that it Spinnercould be displayed in a drop-down list, or it ListViewcould display all the data directly on the screen. The data for both is all from ArrayList. They can be in a type Stringas follows:

<string-array name="Cities">
    <item >Beijing</item>
    <item >Tokoy</item>
    <item >New York</item>
    <item >London</item>
    <item >Paris</item>
    <item >Berlin</item>
    <item >Moscow</item>
    <item >Hongkong</item>
</string-array>

What are their differences?

+4
source share
1 answer

From Spinner and View a list of docs:

Spinners . , . , .

ListView - , . , , , .

, , , , , , - . , , spinner , . , . , , , .

+3

All Articles