Dimension

  • android
    @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])
    annotation Dimension

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

Summary

Constants

const Int
DP = 0
android
const Int
PX = 1
android
const Int
SP = 2
android

Public constructors

Dimension(unit: Int)
android

Public properties

Int
android

Constants

DP

const val DP = 0: Int

PX

const val PX = 1: Int

SP

const val SP = 2: Int

Public constructors

Dimension

Dimension(unit: Int = PX)

Public properties

unit

val unitInt