public class ItemResourceValue extends ResourceValue
mNamespaceResolver, mValue| Constructor and Description |
|---|
ItemResourceValue(ResourceNamespace namespace,
java.lang.String attributeName,
java.lang.String value,
java.lang.String libraryName) |
| Modifier and Type | Method and Description |
|---|---|
ResourceReference |
getAttr()
Returns a
ResourceReference to the attr resource this item is defined for, if
the name was specified using the correct syntax. |
java.lang.String |
getAttrName()
Returns contents of the
name XML attribute that defined this style item. |
java.lang.String |
getName()
Deprecated.
TODO(namespaces): Throw in this method, once layoutlib correctly calls
getAttr() instead. |
java.lang.String |
toString() |
equals, getLibraryName, getRawXmlValue, getReference, getValue, hashCode, isUserDefined, replaceWith, setNamespaceLookup, setValuegetNamespace, getRelativeResourceUrl, getResourceType, getResourceUrl, isFrameworkpublic ItemResourceValue(@NonNull
ResourceNamespace namespace,
@NonNull
java.lang.String attributeName,
@Nullable
java.lang.String value,
@Nullable
java.lang.String libraryName)
@NonNull public java.lang.String getAttrName()
name XML attribute that defined this style item. This is
supposed to be a reference to an attr resource.@Nullable public ResourceReference getAttr()
ResourceReference to the attr resource this item is defined for, if
the name was specified using the correct syntax.@NonNull @Deprecated public java.lang.String getName()
getAttr() instead.getAttr() instead.getName in class ResourceReferencepublic java.lang.String toString()
toString in class ResourceValue