Just know the Android properties

Source: Internet
Author: User

In EditText when the height of the set is wrap_parent, but as we enter more and more, the edit box will be stretched ugly, so we use the Maxlines property, set the maxlines= "2" description of the maximum number of input rows of 2! It will not be stretched!!!

in imageview you want to change the image in the monitor, using the Setimageresource () method ProgressBar is a progress bar, There is a property necessary to master Android:visibilty, is to control the status of the progress bar at the completion of loading, visible is the default, fully visible also occupy the screen space, invisible, is not visible, but occupy the screen space, Gone is completely invisible or occupy the screen space , the code page can also be modified, that is, call the Setvisibilty () method, and then select View.visible,view.invisible,view.gone.

Just know the Android properties

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.