Basic controls in Android (below, chapter summary)

Source: Internet
Author: User

1, if the user adds more than one component on a screen, the ScrollView can be used for wrapping to achieve scrolling effect, but the ScrollView component can only wrap one component.


2,listview can implement a list display of data, which can be encapsulated by the Simpleadapter class.


3, the dialog box can be used to prompt the information, the user can use the System-defined dialog box, or you can define your own dialog box display layout through the layout manager.


The 4,autocompletetextview component can implement the essay Tip function.


5,seekbar can be implemented with drag bars, and users can use the Onseekbarchangelistener interface to listen to the state of the component.


6, the scoring component (Ratingbar) can use a system-defined style, or it can be customized by the user.


7, Imageswitcher and Textswitcher can be used to toggle the display of pictures and text, but users need to customize a viewfactory class.


8,gallery can realize the drag-and-display function of the picture, and can also complete the development of the photo album program with Imageswitcher components.


9,gridview can implement tabular display of data, its contents can be set using the Simpleadapter class, or through custom adapter settings.


10, the mobile phone vibration belongs to the system service (Service.vibrator_service) function, in the 9th chapter will carry on the service concept explanation.


11, the use of labels can be used to categorize the program display, the user can be completed through the program or configuration file, but the use of this way to display the label is not beautiful, and in the 9th chapter will give the reader a more convenient label menu implementation.


The menus in 12,android are divided into 3 categories: The Options menu, the context menu, and the submenu.


13, use the Slidingdrawer component to save the displayed space and categorize some of the features.


14, you can control the size of other components by using the scale component.


15, the implementation of the pop-up window can use the Popupwindow component, the pop-up window itself also needs a Layout manager definition component, in the 9th chapter of the function of the pop-up will be further expanded to explain.


16, if you want to implement the tree, you can use the Expandablelistview component to complete.

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.