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

Attribute 2

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

Dimension 5

The datafield holds a complex number encoding a dimension value.

FirstColorInt 28

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

FirstInt 16

Identifies the start of plain integer values.

Float 4

The datafield holds an IEEE 754 floating point number.

Fraction 6

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

IntBoolean 18

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

IntColorArgb4 30

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

IntColorArgb8 28

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

IntColorRgb4 31

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

IntColorRgb8 29

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

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).

LastColorInt 31

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

LastInt 31

Identifies the end of plain integer values.

Null 0

The value contains no data.

Reference 1

The datafield holds a resource identifier.

String 3

The stringfield holds string data.

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