Android Guides | Samples

Android.Util.ComplexUnitType Enumeration

Enumerates values returned by several methods of ComplexUnitType and taken as a parameter of the TypedValue.ApplyDimension, and TextView.SetTextSize members.

Syntax

public enum ComplexUnitType

Remarks

Members

Member NameDescription
DipDataType.Dimension complex unit: Value is Device Independent Pixels.
FractionDataType.Fraction complex unit: A basic fraction of the overall size.
FractionParentDataType.Fraction complex unit: A fraction of the parent size.
InDataType.Dimension complex unit: Value is in inches.
MaskComplex data: mask to extract unit information (after shifting by ComplexUnitType.Shift). This gives us 16 possible types, as defined below.
MmDataType.Dimension complex unit: Value is in millimeters.
PtDataType.Dimension complex unit: Value is in points.
PxDataType.Dimension complex unit: Value is raw pixels.
ShiftComplex data: bit location of unit information.
SpDataType.Dimension complex unit: Value is a scaled pixel.

Requirements

Namespace: Android.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Util.ComplexUnitType are listed below.

See Also: Enum

Public Fields

DipComplexUnitType. DataType.Dimension complex unit: Value is Device Independent Pixels.
FractionComplexUnitType. DataType.Fraction complex unit: A basic fraction of the overall size.
FractionParentComplexUnitType. DataType.Fraction complex unit: A fraction of the parent size.
InComplexUnitType. DataType.Dimension complex unit: Value is in inches.
MaskComplexUnitType. Complex data: mask to extract unit information (after shifting by ComplexUnitType.Shift). This gives us 16 possible types, as defined below.
MmComplexUnitType. DataType.Dimension complex unit: Value is in millimeters.
PtComplexUnitType. DataType.Dimension complex unit: Value is in points.
PxComplexUnitType. DataType.Dimension complex unit: Value is raw pixels.
ShiftComplexUnitType. Complex data: bit location of unit information.
SpComplexUnitType. DataType.Dimension complex unit: Value is a scaled pixel.