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

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.ItemResourceValue
All Implemented Interfaces:
IResourceValue

public class ItemResourceValue
extends ResourceValue

Represents each item in the android style resource.


Field Summary
 
Fields inherited from class com.android.ide.common.rendering.api.ResourceValue
mValue
 
Constructor Summary
ItemResourceValue(java.lang.String name, boolean isFrameworkAttr, boolean isFramework)
           
ItemResourceValue(java.lang.String attributeName, boolean isFrameworkAttr, java.lang.String value, boolean isFramework)
          For <item name="foo">bar</item>, item in a style resource, the values of the parameters will be as follows:
 
Method Summary
 boolean isFrameworkAttr()
           
 
Methods inherited from class com.android.ide.common.rendering.api.ResourceValue
equals, getRawXmlValue, 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

ItemResourceValue

public ItemResourceValue(java.lang.String name,
                         boolean isFrameworkAttr,
                         boolean isFramework)
See Also:
ItemResourceValue(String, boolean, String, boolean)

ItemResourceValue

public ItemResourceValue(java.lang.String attributeName,
                         boolean isFrameworkAttr,
                         java.lang.String value,
                         boolean isFramework)
For <item name="foo">bar</item>, item in a style resource, the values of the parameters will be as follows:

Parameters:
attributeName - foo
isFrameworkAttr - is foo in framework namespace.
value - bar
isFramework - if the style is a framework file or project file.
Method Detail

isFrameworkAttr

public boolean isFrameworkAttr()