com.android.ide.common.rendering.api
Class DeclareStyleableResourceValue

java.lang.Object
  extended by com.android.ide.common.rendering.api.ResourceReference
      extended by com.android.ide.common.rendering.api.ResourceValue
          extended by 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.


Field Summary
 
Fields inherited from class com.android.ide.common.rendering.api.ResourceValue
mValue
 
Constructor Summary
DeclareStyleableResourceValue(ResourceType type, java.lang.String name, boolean isFramework)
          Deprecated.  
 
Method Summary
 void addValue(AttrResourceValue attr)
          Deprecated.  
 java.util.Map<java.lang.String,AttrResourceValue> getAllAttributes()
          Deprecated.  
 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.
 
Methods inherited from class com.android.ide.common.rendering.api.ResourceValue
equals, getResourceType, getType, getValue, hashCode, replaceWith, setValue, toString
 
Methods inherited from class com.android.ide.common.rendering.api.ResourceReference
getName, isFramework
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.android.layoutlib.api.IResourceValue
getName, isFramework
 

Constructor Detail

DeclareStyleableResourceValue

public DeclareStyleableResourceValue(ResourceType type,
                                     java.lang.String name,
                                     boolean isFramework)
Deprecated. 
Method Detail

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.