Dimension

annotation Dimension


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

Summary

Constants

static final @NonNull int
static final @NonNull int
static final @NonNull int

Public methods

abstract @DimensionUnit @NonNull int

Constants

DP

@NonNull
public static final @NonNull int DP

PX

@NonNull
public static final @NonNull int PX

SP

@NonNull
public static final @NonNull int SP

Public methods

unit

@DimensionUnit
@NonNull
public abstract @DimensionUnit int unit()