Android Common Controls

Source: Internet
Author: User

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.

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

TextView common attribute and corresponding method description

2.

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 and also set a listener for the EditView control to determine whether the user's input is legitimate.

The following is a description of EditView common properties and corresponding methods

Android Common Controls

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.