Dimension


@MustBeDocumented
@Retention(value = AnnotationRetention.BINARY)
@Target(allowedTargets = [AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.ANNOTATION_CLASS])
public annotation Dimension


Denotes that an integer parameter, field or method return value is expected to represent a dimension.

Summary

Constants

static final int
DP = 0
static final int
PX = 1
static final int
SP = 2

Public constructors

Dimension(int unit)

Public methods

final int

Constants

DP

Added in 1.5.0
public static final int DP = 0

PX

Added in 1.5.0
public static final int PX = 1

SP

Added in 1.5.0
public static final int SP = 2

Public constructors

Dimension

public Dimension(int unit)

Public methods

getUnit

public final int getUnit()