Android Custom Properties

Source: Internet
Author: User

Find the "D:\eclispe_android\eclipse_en_32_4.4\sdk\platforms\android-22\data\res\values" Android SDK with its own properties file, To intercept a custom property of Android:

    <declare-styleable name= "TextView" > <!--determines the minimum type that getText () would return.             The default is "normal". Note that EditText and Logtextbox always return Editable, even if you specify something less powerful here. --<attr name= "Buffertype" > <!--Can return any charsequence, possibly a spanne D one if the source text was spanned. --<enum name= "normal" value= "0"/> <!--Can only return spannable. --<enum name= "spannable" value= "1"/> <!--Can only return spannable and Editable. --<enum name= "editable" value= "2"/> </attr> <!--Text to display.  --<attr name= "text" format= "string" localization= "suggested"/> <!--Hint text to display when The text is empty. --<attr name= "hint" format= "string"/> <!--Text COlor. --<attr name= "TextColor"/> <!--Color of the text selection highlight. --<attr name= "Textcolorhighlight"/> <!--Color of the hint text. --<attr name= "Textcolorhint"/> <!--Base text color, typeface, size, and style. --<attr name= "textappearance"/> <!--Size of the text. Recommended dimension type for text was "SP" for Scaled-pixels (EXAMPLE:15SP). --<attr name= "TextSize"/> <!--sets the horizontal scaling factor for the text.  --<attr name= "Textscalex" format= "float"/> <!--Typeface (normal, sans, serif, monospace) for The text. --<attr name= "typeface"/> <!--Style (bold, italic, bolditalic) for the text. --<attr name= "TextStyle"/> <!--Font family (named by string) for the text. --<attr name= "fontFamily"/> <!--Text color For links. --<attr name= "Textcolorlink"/> <!--makes the cursor visible (the default) or invisible. --<attr name= "Cursorvisible" format= "boolean"/>

    <declare-styleable name= "LinearLayout" > <!--should the layout be a column or a row?  Use ' horizontal ' for a row, ' vertical ' for a column. The default is horizontal. --<attr name= "orientation"/> <attr name= "Gravity"/> <!--when set to False, pre Vents the layout from aligning its children ' s baselines. This attribute was particularly useful when the children use different values for gravity. The default value is true. --<attr name= "baselinealigned" format= "boolean"/> <!--when a linear layout was part of anothe R layout That's baseline aligned, it can specify which of its children to baseline align to (so is, W Hich child TextView) .--> <attr name= "Baselinealignedchildindex" format= "integer" min= "0"/> <!-- Defines the maximum weight sum. If unspecified, the sum is computed by adding the Layout_weIght of all of the children.  This can is used for instance to give a single child 50% of the total available space by giving it A layout_weight of 0.5 and setting the WeightSum to 1.0. --<attr name= "WeightSum" format= "float"/> <!--When set to true, all children with a weight w Ill be considered has the minimum size of the largest child. If false, all children is measured normally. --<attr name= "Measurewithlargestchild" format= "boolean"/> <!--drawable to use as a vertical Divider between buttons. --<attr name= "divider"/> <!--Setting for which dividers to show. --<attr name= "Showdividers" > <flag name= "None" value= "0"/> <flag name= "b         Eginning "value=" 1 "/> <flag name=" Middle "value=" 2 "/> <flag name=" End "value=" 4 "/> </attr> <!--Size of padding on either end of a divider. --<attr name= "dividerpadding" format= "Dimension"/> </declare-styleable>

Android Custom Properties

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.