Piglet's Android starter Road Day 3-part 2
Learning Part 2 for various UI components
Introduction to this section:
In Part 1 we learned TextView (text box), EditText (edit box), button (buttons), ImageButton (image button);
RadioButton (radio button), CheckBox (check box), ToggleButton (switch button), switch (switch), and ImageView use!
In Part 2 We will talk about some of the UI components associated with the adapter adapter, such as Listview,gridview! It's a bit more difficult than before!
In fact, the difficulty is adapter adapter use and understanding!
Well, let the reader follow the author's footsteps together to resolve some of the UI components related to adapter!
Learning Roadmap for this section:
Body:
Before you start talking about UI components, say the concept of this adapter adapter:
The so-called adapter is a direct bridge between the adaptive view and the data
can be simply understood as: Adapter adapter is to display a variety of data in the appropriate form on the view, provided to the user to see
There are four commonly used adapter classes: Arrayadapter , Baseadapter , Simpleadapter , Simplecursoradapter
ListView List View:
Detailed analysis: portal
Autocompletetextview (Auto-complete text box) and Multiautocompletetextview (auto-complete text box for multi-tip items)
Detailed analysis: portal
girdview grid view:
Detailed analysis: portal
Spinner list Options box:
Detailed analysis: portal
Gallery Gallery View:
Detailed analysis: portal