Piglet's Android starter Road Day 3-part 2

Source: Internet
Author: User

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





Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.