public class InlineResourceItem extends ResourceItem
true for isDeclaredInline() and false for
isEditableDirectly().| Constructor and Description |
|---|
InlineResourceItem(java.lang.String name)
Constructs a new inline ResourceItem.
|
| Modifier and Type | Method and Description |
|---|---|
com.android.ide.common.rendering.api.ResourceValue |
getResourceValue(com.android.resources.ResourceType type,
FolderConfiguration referenceConfig,
boolean isFramework)
Returns a
ResourceValue for this item based on the given configuration. |
boolean |
isDeclaredInline()
Returns whether the ID resource has been declared inline inside another resource XML file.
|
boolean |
isEditableDirectly()
Returns whether the resource is editable directly.
|
java.lang.String |
toString() |
add, compareTo, getAlternateCount, getName, getSourceFileArray, getSourceFileList, getXmlString, hasAlternates, hasDefault, hasNoSourceFile, removeFile, resetpublic InlineResourceItem(java.lang.String name)
name - the name of the resource as it appears in the XML and R.java files.public boolean isDeclaredInline()
ResourceItemResourceType.ID, this will always return false.isDeclaredInline in class ResourceItempublic boolean isEditableDirectly()
ResourceItem
This is typically the case for resources that don't have alternate versions, or resources
of type ResourceType.ID that aren't declared inline.
isEditableDirectly in class ResourceItempublic com.android.ide.common.rendering.api.ResourceValue getResourceValue(com.android.resources.ResourceType type,
FolderConfiguration referenceConfig,
boolean isFramework)
ResourceItemResourceValue for this item based on the given configuration.
If the ResourceItem has several source files, one will be selected based on the config.getResourceValue in class ResourceItemtype - the type of the resource. This is necessary because ResourceItem doesn't embed
its type, but ResourceValue does.referenceConfig - the config of the resource item.isFramework - whether the resource is a framework value. Same as the type.public java.lang.String toString()
toString in class ResourceItem