@Target(value=METHOD)
@Retention(value=SOURCE)
public @interface InspectableProperty
Modifier and Type | Optional Element and Description |
---|---|
int |
attributeId
If the property is inflated from XML, the resource ID of its XML attribute.
|
InspectableProperty.EnumEntry[] |
enumMapping
For enumerations packed into primitive {int} properties, map the values to string names.
|
InspectableProperty.FlagEntry[] |
flagMapping
For flags packed into primitive {int} properties, model the string names of the flags.
|
boolean |
hasAttributeId
If this property has an attribute ID.
|
java.lang.String |
name
The name of the property.
|
InspectableProperty.ValueType |
valueType
Specify how to interpret a value type packed into a primitive integer.
|
public abstract java.lang.String name
public abstract int attributeId
hasAttributeId()
is true, the attribute ID will be
inferred from name()
.public abstract boolean hasAttributeId
public abstract InspectableProperty.ValueType valueType
InspectableProperty.ValueType
public abstract InspectableProperty.EnumEntry[] enumMapping
#enumMapping()
cannot be used simultaneously with flagMapping()
.InspectableProperty.EnumEntry
, empty if not applicablepublic abstract InspectableProperty.FlagEntry[] flagMapping
#flagMapping()
cannot be used simultaneously with enumMapping()
.InspectableProperty.FlagEntry
, empty if not applicable