Common attributes of Android Development

Source: Internet
Author: User

<! --
Android: id -- specify the corresponding ID for the control
Android: text -- specify the text displayed in the control. Note that strings in the strings. xml file should be used as much as possible here.
Android: grimace -- specifies the basic position of the control, such as center and right.
Android: textSize -- specifies the font size in the control.
Android: background -- specifies the background color used by the control. The RGB naming method is used.
Android: width -- specify the width of the control
Android: height -- specify the height of the control
Android: padding * -- specifies the padding of the control, that is, the content in the control.
Android: sigleLine -- if set to true, the control content is displayed in the same row.
-->

 

<! --
Android: layout_above: Move the control's bottom to the control with the given ID
Android: layout_below: place the top of the control under the control with the given ID
Android: layout_toLeftOf align the right edge of the control with the left edge of the control with the given ID
Android: layout_toRightOf align the left edge of the control with the right edge of the control with the given ID

Android: layout_alignBaseline the baseline of the control is aligned with the baseline of the control with the given ID
Android: layout_alignBottom: Compares the bottom edge of the control with the bottom edge of the given ID control.
Android: layout_alignLeft: Align the left edge of the control with the given ID
Android: layout_alignRight: Align the right edge of the control with the right edge of the given ID Control
Android: layout_alignTop: aligntop
Android: alignParentBottom if the value is true, the bottom of the control is aligned with the bottom of the parent control.
Android: layout_alignParentLeft if the value is true, the left side of the control is aligned with the left side of the parent control.
Android: layout_alignParentRight if the value is true, the right side of the control is aligned with the right side of the parent control.
Android: layout_alignParentTop if the value is true, the top of the space is aligned with the top of the parent control.

Android: layout_centerHorizontal
Android: layout_centerInParent if the value is true, the control is centered in the horizontal and vertical directions of the parent control.
Android: layout_centerVertical if the value is true, the control will be centered in the vertical direction
-->

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.