Condividi tramite


TypedValue.ComplexUnit Property

Definition

Return the complex unit type for this value.

public virtual Android.Util.ComplexUnitType ComplexUnit { [Android.Runtime.Register("getComplexUnit", "()I", "GetGetComplexUnitHandler", ApiSince=22)] get; }
[<get: Android.Runtime.Register("getComplexUnit", "()I", "GetGetComplexUnitHandler", ApiSince=22)>]
member this.ComplexUnit : Android.Util.ComplexUnitType

Property Value

The complex unit type.

Attributes

Remarks

Return the complex unit type for this value. For example, a dimen type with value 12sp will return #COMPLEX_UNIT_SP. Only use for values whose type is #TYPE_DIMENSION.

Java documentation for android.util.TypedValue.getComplexUnit().

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