Package icyllis.modernui.annotation

# Annotation Interface Dimension

@Documented @Retention(SOURCE) @Target({METHOD,PARAMETER,FIELD,LOCAL_VARIABLE,ANNOTATION_TYPE}) public @interface Dimension
Denotes that a numeric parameter, field or method return value is expected to represent a dimension.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static @interface`
  `Dimension.Unit`

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `int`
  `unit`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `DP`
  `static final int`
  `PX`
  `static final int`
  `SP`

- ## Field Details

  - ### DP

    static final int DP
    See Also:
      - Constant Field Values

  - ### PX

    static final int PX
    See Also:
      - Constant Field Values

  - ### SP

    static final int SP
    See Also:
      - Constant Field Values

- ## Element Details

  - ### unit

    int unit
    Default:
      `1`