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
public static final int DP
Constant Value: 0 (0x00000000)
PX
public static final int PX
Constant Value: 1 (0x00000001)
SP
public static final int SP
Constant Value: 2 (0x00000002)
Public methods
unit
public int unit ()
Returns | |
---|---|
int |