Sdílet prostřednictvím


DataType Enum

Definition

Enumerates values returned by several types and taken as a parameter of the CoerceToString() member.

public enum DataType
type DataType = 
Inheritance
DataType

Fields

Name Value Description
Null 0

The value contains no data.

Reference 1

The datafield holds a resource identifier.

Attribute 2

The datafield holds an attribute resource identifier (referencing an attribute in the current theme style, not a resource entry).

String 3

The stringfield holds string data.

Float 4

The datafield holds an IEEE 754 floating point number.

Dimension 5

The datafield holds a complex number encoding a dimension value.

Fraction 6

The datafield holds a complex number encoding a fraction of a container.

FirstInt 16

Identifies the start of plain integer values.

IntDec 16

The datafield holds a number that was originally specified in decimal.

IntHex 17

The datafield holds a number that was originally specified in hexadecimal (0xn).

IntBoolean 18

The datafield holds 0 or 1 that was originally specified as "false" or "true".

FirstColorInt 28

Identifies the start of integer values that were specified as color constants (starting with '#').

IntColorArgb8 28

The datafield holds a color that was originally specified as #aarrggbb.

IntColorRgb8 29

The datafield holds a color that was originally specified as #rrggbb.

IntColorArgb4 30

The datafield holds a color that was originally specified as #argb.

IntColorRgb4 31

The datafield holds a color that was originally specified as #rgb.

LastColorInt 31

Identifies the end of integer values that were specified as color constants.

LastInt 31

Identifies the end of plain integer values.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to