Android Learning-Interface-view and Groupview

Source: Internet
Author: User

All interface elements are inherited and view (such as: ImageView, button, etc.), the layout inherits from Groupview (such as: LinearLayout, etc.)

The main properties of the view, which are directly written in the XML configuration, are, of course, possible directly through the code.

XML properties Related methods Description
Android:alpha Setalpha (float Alpha) The alpha value is from 0~1, such as 0.5 equivalent to transparent 50%, and it is important to note that the following version of 3.0 does not have this attribute, so as long as the setting is equivalent to opaque, 3.0 version can be used View.getbackground (). Setalpha (255) method to set the transparency

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.