Get started with Android-basics

Source: Internet
Author: User

    • strings.xml– text resources.
    • colors.xml– color resource.
    • dimens.xml– size resource.
    • arrays.xml– array Resource.
    • styles.xml–-like resource.
    • #RGB – Use 0~9, a~f to set the color of the red green blue, a total of 256 colors.
    • #RRGGBB – Use 00~ff to set the red green color to a total of 65535 colors.
    • #ARGB – The first code uses 0~9, a~f to set the transparency, 0 is completely transparent, is not visible, and f means completely opaque.
    • #AARRGGBB – Use 00~FF to set the transparency, 00 to be completely transparent, and FF to be completely opaque.
    • px– screen Painter.
    • dp– every inch of the canvas, 160DP is an inch.
    • sp–, like DP, does not automatically adjust the font size according to the device setting.
    • in– inches.
    • MM – mm.
    • The retangle– draw rectangle, which can be paired with the "corners" label to set the rounded corners of the four edges.
    • oval– drawing elliptical orbits circular shape.
    • line– draw the article.
    • ring– the drawing circle and controls the effect of the drawing in the shape tag.
    • android:id– the resource name.
    • android:title– the text of the order.
    • android:icon– Select the object to specify a graph resource.
    • The android:showasaction– is designed to be used in the same way as "ifroom", "never", "withtext", "always", and "collapseactionview". The never represents the use of the generic menu, and the other settings will be displayed on the action Bar.
    • android:onclick– Select the method name to call later.

Reference article: http://www.codedata.com.tw/mobile/android-tutorial-the-2nd-class-1-res/

Get started with Android-basics

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.