Detailed introduction to Android custom control properties
Detailed introduction to Android custom control properties
1. Reference: refers to a resource ID.
(1) Attribute definition:
(2) Attribute usage:
2. Color: color value.
(1) Attribute definition:
(2) Attribute usage:
3. Boolean: Boolean value.
(1) Attribute definition:
(2) Attribute usage:
4. Dimension: dimension value.
(1) Attribute definition:
(2) Attribute usage:
5. Float: floating point value.
(1) Attribute definition:
(2) Attribute usage:
6. Integer: integer value.
(1) Attribute definition:
(2) Attribute usage:
7. String: string.
(1) Attribute definition:
(2) Attribute usage:
8. Fraction: percentage.
(1) Attribute definition:
(2) Attribute usage:
9. Enum: enumeration value.
(1) Attribute definition:
(2) Attribute usage:
10. Flag: bit or operation
(1) Attribute definition:
(2) Attribute usage:
be careful:
You can specify multiple types of values when defining properties.
(1) Attribute definition:
(2) Attribute usage:
Thank you for reading, hope to help you, thank you for your support to this site!