public class DeclareStyleableResourceValue extends ResourceValue
ResourceValue.getValue() will return null, instead use getAllAttributes() to
get the list of attributes defined in the declare-styleable.mValue| Constructor and Description |
|---|
DeclareStyleableResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework) |
DeclareStyleableResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework,
java.lang.String libraryName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(AttrResourceValue attr) |
java.util.List<AttrResourceValue> |
getAllAttributes() |
java.util.Map<java.lang.String,java.lang.Integer> |
getAttributeValues(java.lang.String name)
Deprecated.
the method doesn't respect namespaces and is only present for older versions
of LayoutLibs.
|
equals, getLibraryName, getRawXmlValue, getResourceType, getType, getValue, hashCode, isUserDefined, replaceWith, setValue, toStringgetName, isFrameworkclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, isFrameworkpublic DeclareStyleableResourceValue(@NonNull
ResourceType type,
@NonNull
java.lang.String name,
boolean isFramework)
public DeclareStyleableResourceValue(@NonNull
ResourceType type,
@NonNull
java.lang.String name,
boolean isFramework,
java.lang.String libraryName)
@Deprecated public java.util.Map<java.lang.String,java.lang.Integer> getAttributeValues(java.lang.String name)
name - the name of the attribute@NonNull public java.util.List<AttrResourceValue> getAllAttributes()
public void addValue(@NonNull
AttrResourceValue attr)