belongs to Maven artifact androidx.annotation:annotation:1.0.0-alpha1

Dimension

public abstract @interface Dimension
implements Annotation

androidx.annotation.Dimension


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

Summary

Constants

int DP

int PX

int SP

Public methods

int unit()

Inherited methods

Constants

DP

int DP

Constant Value: 0 (0x00000000)

PX

int PX

Constant Value: 1 (0x00000001)

SP

int SP

Constant Value: 2 (0x00000002)

Public methods

unit

int unit ()

Returns
int