android-Common Controls-< four >

Source: Internet
Author: User

Http://www.cnblogs.com/linjiqin/category/284058.html

1.TextView

In Android, text controls primarily include TextView controls and EditView controls, which are described in more detail in this section first on the use of TextView controls.

The TextView class inherits from the view class, and the function of the TextView control is to display the contents of the text to the user, but not to allow editing, while its subclass EditView allows the user to edit.

     < TextView           Android:layout_width = "Wrap_content"          android:layout_height= "Wrap_content"         android:background= "#00ff00"           android:text= "00ff00"         android:textsize= "15pt"         />

2.EditText

The EditView class inherits from the TextView class, and the biggest difference between EditView and TextView is that the user can edit the EditView control.

You can also set a listener for the EditView control to determine whether the user's input is legitimate.

3.checkbox,radiobutton

The checkbox and RadioButton controls are only checked and unchecked, except that RadioButton is a radio button,

Need to be compiled into a radiogroup, at the same time only one button in a Radiogroup is selected.

android-Common Controls-< four >

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.