ComplexUnitType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates values returned by several methods of ComplexUnitType and taken as a parameter of the F:Android.Util.TypedValue.ApplyDimension, and F:Android.Widget.TextView.SetTextSize members.
public enum ComplexUnitType
type ComplexUnitType =
- Inheritance
-
ComplexUnitType
Fields
Name | Value | Description |
---|---|---|
Fraction | 0 | Fractioncomplex unit: A basic fraction of the overall size. |
Px | 0 | Dimensioncomplex unit: Value is raw pixels. |
Shift | 0 | Complex data: bit location of unit information. |
Dip | 1 | Dimensioncomplex unit: Value is Device Independent Pixels. |
FractionParent | 1 | Fractioncomplex unit: A fraction of the parent size. |
Sp | 2 | Dimensioncomplex unit: Value is a scaled pixel. |
Pt | 3 | Dimensioncomplex unit: Value is in points. |
In | 4 | Dimensioncomplex unit: Value is in inches. |
Mm | 5 | Dimensioncomplex unit: Value is in millimeters. |
Mask | 15 | Complex data: mask to extract unit information (after shifting by Shift). |
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.