Enum | Description |
---|---|
SdkConstant.SdkConstantType |
Annotation Type | Description |
---|---|
AnimatorRes |
Denotes that an integer parameter, field or method return value is expected
to be an animator resource reference (e.g.
|
AnimRes |
Denotes that an integer parameter, field or method return value is expected
to be an anim resource reference (e.g.
|
AnyRes |
Denotes that an integer parameter, field or method return value is expected
to be a resource reference of any type.
|
AppIdInt |
Denotes that the annotated element is a multi-user application ID.
|
ArrayRes |
Denotes that an integer parameter, field or method return value is expected
to be an array resource reference (e.g.
|
AttrRes |
Denotes that an integer parameter, field or method return value is expected
to be an attribute reference (e.g.
|
BinderThread |
Denotes that the annotated method should only be called on the binder thread.
|
BoolRes |
Denotes that an integer parameter, field or method return value is expected
to be a boolean resource reference.
|
CallSuper |
Denotes that any overriding methods should invoke this method as well.
|
CheckResult |
Denotes that the annotated method returns a result that it typically is
an error to ignore.
|
ColorInt |
Denotes that the annotated element represents a packed color
int,
AARRGGBB . |
ColorRes |
Denotes that an integer parameter, field or method return value is expected
to be a color resource reference (e.g.
|
DimenRes |
Denotes that an integer parameter, field or method return value is expected
to be a dimension resource reference (e.g.
|
DrawableRes |
Denotes that an integer parameter, field or method return value is expected
to be a drawable resource reference (e.g.
|
FloatRange |
Denotes that the annotated element should be a float or double in the given range
Example:
@FloatRange(from=0.0,to=1.0)
public float getAlpha() {
...
}
|
FractionRes |
Denotes that an integer parameter, field or method return value is expected
to be a fraction resource reference.
|
IdRes |
Denotes that an integer parameter, field or method return value is expected
to be an id resource reference (e.g.
|
IntDef |
Denotes that the annotated element of integer type, represents
a logical type and that its value should be one of the explicitly
named constants.
|
IntegerRes |
Denotes that an integer parameter, field or method return value is expected
to be an integer resource reference (e.g.
|
InterpolatorRes |
Denotes that an integer parameter, field or method return value is expected
to be an interpolator resource reference (e.g.
|
IntRange |
Denotes that the annotated element should be an int or long in the given range
Example:
@IntRange(from=0,to=255)
public int getAlpha() {
...
}
|
LayoutRes |
Denotes that an integer parameter, field or method return value is expected
to be a layout resource reference (e.g.
|
MainThread |
Denotes that the annotated method should only be called on the main thread.
|
MenuRes |
Denotes that an integer parameter, field or method return value is expected
to be a menu resource reference.
|
NonNull |
Denotes that a parameter, field or method return value can never be null.
|
Nullable |
Denotes that a parameter, field or method return value can be null.
|
PluralsRes |
Denotes that an integer parameter, field or method return value is expected
to be a plurals resource reference.
|
RawRes |
Denotes that an integer parameter, field or method return value is expected
to be a raw resource reference.
|
RequiresPermission |
Denotes that the annotated element requires (or may require) one or more permissions.
|
RequiresPermission.Read |
Specifies that the given permission is required for read operations.
|
RequiresPermission.Write |
Specifies that the given permission is required for write operations.
|
SdkConstant |
Indicates a constant field value should be exported to be used in the SDK tools.
|
Size |
Denotes that the annotated element should have a given size or length.
|
StringDef |
Denotes that the annotated String element, represents a logical
type and that its value should be one of the explicitly named constants.
|
StringRes |
Denotes that an integer parameter, field or method return value is expected
to be a String resource reference (e.g.
|
StyleableRes |
Denotes that a integer parameter, field or method return value is expected
to be a styleable resource reference (e.g.
|
StyleRes |
Denotes that a integer parameter, field or method return value is expected
to be a style resource reference (e.g.
|
SuppressLint |
Indicates that Lint should ignore the specified warnings for the annotated element.
|
SystemApi |
Indicates an API is exposed for use by bundled system applications.
|
TargetApi |
Indicates that Lint should treat this type as targeting a given API level, no matter what the
project target is.
|
TestApi |
Indicates an API is exposed for use by CTS.
|
TransitionRes |
Denotes that an integer parameter, field or method return value is expected
to be a transition resource reference.
|
UiThread |
Denotes that the annotated method or constructor should only be called on the UI thread.
|
UserIdInt |
Denotes that the annotated element is a multi-user user ID.
|
Widget |
Indicates a class is a widget usable by application developers to create UI.
|
WorkerThread |
Denotes that the annotated method should only be called on a worker thread.
|
XmlRes |
Denotes that an integer parameter, field or method return value is expected
to be an XML resource reference.
|