Dimension
  public
  
  
  abstract
  @interface
  Dimension
  
  
      implements
      
        Annotation
      
  
  
| android.support.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 | |
|---|---|
  
    
  
    java.lang.annotation.Annotation
  
 | |
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 | 
        |
Annotations
- AnimatorRes
 - AnimRes
 - AnyRes
 - AnyThread
 - ArrayRes
 - AttrRes
 - BinderThread
 - BoolRes
 - CallSuper
 - CheckResult
 - ColorInt
 - ColorLong
 - ColorRes
 - DimenRes
 - Dimension
 - DrawableRes
 - FloatRange
 - FontRes
 - FractionRes
 - GuardedBy
 - HalfFloat
 - IdRes
 - IntDef
 - IntegerRes
 - InterpolatorRes
 - IntRange
 - Keep
 - LayoutRes
 - LongDef
 - MainThread
 - MenuRes
 - NavigationRes
 - NonNull
 - Nullable
 - PluralsRes
 - Px
 - RawRes
 - RequiresApi
 - RequiresPermission
 - RequiresPermission.Read
 - RequiresPermission.Write
 - RestrictTo
 - Size
 - StringDef
 - StringRes
 - StyleableRes
 - StyleRes
 - TransitionRes
 - UiThread
 - VisibleForTesting
 - WorkerThread
 - XmlRes
 
Enums