- 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