public interface AttrResourceValue extends ResourceValue
The ResourceValue.getValue() method of this class always returns null. To get the numeric values
associated with flags or enums use getAttributeValues().
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Integer> |
getAttributeValues()
Returns the enum or flag integer values keyed by the value names.
|
java.lang.String |
getDescription()
Returns the description of the attr resource obtained from an XML comment.
|
java.util.Set<AttributeFormat> |
getFormats()
Returns the formats allowed for the values of the attribute.
|
java.lang.String |
getGroupName()
Returns the name of the attr group obtained from an XML comment.
|
java.lang.String |
getValueDescription(java.lang.String valueName)
Returns the description of a enum/flag value with the given name.
|
asReference, getLibraryName, getName, getNamespace, getNamespaceResolver, getRawXmlValue, getReference, getResourceType, getResourceUrl, getValue, isFramework, isUserDefined, setValue@Nullable java.util.Map<java.lang.String,java.lang.Integer> getAttributeValues()
@Nullable
java.lang.String getValueDescription(@NonNull
java.lang.String valueName)
@Nullable java.lang.String getDescription()
@Nullable java.lang.String getGroupName()
<!-- =========== --> <!-- Text styles --> <!-- =========== --> <eat-comment /> <!-- Default appearance of text: color, typeface, size, and style. --> <attr name="textAppearance" format="reference" />
Attr grouping is available only for the framework resources.
@NonNull java.util.Set<AttributeFormat> getFormats()