com.android.ide.common.rendering.api
Class DeclareStyleableResourceValue
java.lang.Object
com.android.ide.common.rendering.api.ResourceReference
com.android.ide.common.rendering.api.ResourceValue
com.android.ide.common.rendering.api.DeclareStyleableResourceValue
- All Implemented Interfaces:
- IResourceValue
Deprecated. This class is broken as it does not handle the namespace for each attribute.
Thankfully, newer versions of layoutlib don't actually use it, so we just keep it as is for
backward compatibility on older layoutlibs.
@Deprecated
public class DeclareStyleableResourceValue
- extends ResourceValue
A Resource value representing a declare-styleable resource.
ResourceValue.getValue()
will return null, instead use getAttributeValues(String)
to
get the enum/flag value associated with an attribute defined in the declare-styleable.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
DeclareStyleableResourceValue
public DeclareStyleableResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework)
- Deprecated.
getAttributeValues
public java.util.Map<java.lang.String,java.lang.Integer> getAttributeValues(java.lang.String name)
- Deprecated.
- Return the enum/flag integer value for a given attribute.
- Parameters:
name
- the name of the attribute
- Returns:
- the map of (name, integer) values.
getAllAttributes
public java.util.Map<java.lang.String,AttrResourceValue> getAllAttributes()
- Deprecated.
addValue
public void addValue(AttrResourceValue attr)
- Deprecated.