android-first line of code

Source: Internet
Author: User

Android:orientation

Horizontal/vertical

Sets whether the layout is horizontal or vertical, the default is vertical

Android:layout_gravity

Center/right/left/bottom/top

Position

Android:gravity

Center/right/left/bottom/top

Android:textcolor

#ffffff

Font Color

Android:textstyle

Bold/italic/bolditalic

Set glyph [Bold (bold) 0, Italic (italic) 1, bolditalic (coarse and oblique) 2] can be set one or more, separated by "|"

Android:textsize

20dip

Font size

Android:layout_width Setting the width of a component
Android:layout_height Setting the height of a component
Android:id defines an ID value for the component for later use
Android:background setting the background color or background picture of a component
Android:text to set the display text for a component
Android:textcolor setting the color of the display text for a component
The Android:layout_below component is below the reference component

android-first line of code

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.