Skip navigation links
A B C D E F G H I K L M N O P R S T U V W X 

A

AAPT - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
 
ACTION_BAR - Static variable in class com.android.ide.common.rendering.api.Features
Ability to render ActionBar.
ActionBarCallback - Class in com.android.ide.common.rendering.api
Callback for Action Bar information needed by the Layout Library.
ActionBarCallback() - Constructor for class com.android.ide.common.rendering.api.ActionBarCallback
 
ActionBarCallback.HomeButtonStyle - Enum in com.android.ide.common.rendering.api
Types of navigation for home button.
ADAPTER_BINDING - Static variable in class com.android.ide.common.rendering.api.Features
 
AdapterBinding - Class in com.android.ide.common.rendering.api
Describe the content of the dynamic android.widget.Adapter used to fill android.widget.AdapterView
AdapterBinding(int) - Constructor for class com.android.ide.common.rendering.api.AdapterBinding
 
addAdapterBinding(ResourceReference, AdapterBinding) - Method in class com.android.ide.common.rendering.api.SessionParams
 
addChild(DataBindingItem) - Method in class com.android.ide.common.rendering.api.DataBindingItem
 
addElement(String) - Method in class com.android.ide.common.rendering.api.ArrayResourceValueImpl
Adds an element into the array.
addFooter(ResourceReference) - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
addHeader(ResourceReference) - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
addItem(DataBindingItem) - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
addItem(StyleItemResourceValue) - Method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
Adds a style item to this style.
addPlural(String, String) - Method in class com.android.ide.common.rendering.api.PluralsResourceValueImpl
Adds an element into the array.
addValue(String, Integer, String) - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
Adds a possible value of the flag or enum attribute.
addValue(AttrResourceValue) - Method in class com.android.ide.common.rendering.api.StyleableResourceValueImpl
 
ANDROID - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
 
animate(Object, String, boolean, IAnimationListener) - Method in class com.android.ide.common.rendering.api.RenderSession
Starts playing an given animation on a given object.
ANIMATED_VIEW_MANIPULATION - Static variable in class com.android.ide.common.rendering.api.Features
Ability to manipulate views with animation, as long as the view does not change parent.
API_CURRENT - Static variable in class com.android.ide.common.rendering.api.Bridge
 
APPCOMPAT - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
The namespace of the Androidx appcompat library when namespaces are used.
APPCOMPAT_LEGACY - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
The namespace of the old appcompat library when namespaces are used.
applyStyle(StyleResourceValue, boolean) - Method in class com.android.ide.common.rendering.api.RenderResources
Use this theme to resolve resources.
Arity - Enum in com.android.resources
Represents Android quantities.
ArrayResourceValue - Interface in com.android.ide.common.rendering.api
Represents an Android array resource with a name and a list of children ResourceValue items, one for array element.
ArrayResourceValueImpl - Class in com.android.ide.common.rendering.api
Represents an Android array resource with a name and a list of children ResourceValue items, one for array element.
ArrayResourceValueImpl(ResourceNamespace, String, String) - Constructor for class com.android.ide.common.rendering.api.ArrayResourceValueImpl
 
ArrayResourceValueImpl(ResourceReference, String) - Constructor for class com.android.ide.common.rendering.api.ArrayResourceValueImpl
 
asReference() - Method in interface com.android.ide.common.rendering.api.ResourceValue
 
asReference() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
AssetRepository - Class in com.android.ide.common.rendering.api
Represents the interface for dealing with assets.
AssetRepository() - Constructor for class com.android.ide.common.rendering.api.AssetRepository
 
attr(ResourceNamespace, String) - Static method in class com.android.ide.common.rendering.api.ResourceReference
A shorthand for creating a ResourceType.ATTR resource reference.
ATTR_MENU - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
ATTR_NAV_MODE - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
AttributeFormat - Enum in com.android.ide.common.rendering.api
Formats of styleable attribute value.
AttrResourceValue - Interface in com.android.ide.common.rendering.api
A resource value representing an attr resource.
AttrResourceValueImpl - Class in com.android.ide.common.rendering.api
A resource value representing an attr resource.
AttrResourceValueImpl(ResourceNamespace, String, String) - Constructor for class com.android.ide.common.rendering.api.AttrResourceValueImpl
 
AttrResourceValueImpl(ResourceReference, String) - Constructor for class com.android.ide.common.rendering.api.AttrResourceValueImpl
 

B

Bridge - Class in com.android.ide.common.rendering.api
Entry point of the Layout Library.
Bridge() - Constructor for class com.android.ide.common.rendering.api.Bridge
 

C

Capability - Enum in com.android.ide.common.rendering.api
Deprecated.
CHOREOGRAPHER - Static variable in class com.android.ide.common.rendering.api.Features
Ability to use choreographer animations.
clearCaches(Object) - Method in class com.android.ide.common.rendering.api.Bridge
Clears the resource cache for a specific project.
clearFontCache(String) - Method in class com.android.ide.common.rendering.api.Bridge
Removes a font file from the Typeface cache.
clearStyles() - Method in class com.android.ide.common.rendering.api.RenderResources
com.android.ide.common.rendering.api - package com.android.ide.common.rendering.api
 
com.android.resources - package com.android.resources
 
com.android.util - package com.android.util
 
compareTo(ResourceNamespace) - Method in class com.android.ide.common.rendering.api.ResourceNamespace
 
compareTo(ResourceReference) - Method in class com.android.ide.common.rendering.api.ResourceReference
 
copyOf(StyleResourceValue) - Static method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
Creates a copy of the given style.
create(ResourceType, String, boolean) - Static method in class com.android.resources.ResourceUrl
Deprecated.
This factory method is used where we have no way of knowing the namespace. We need to migrate every call site to the other factory method that takes a namespace.
create(String, ResourceType, String) - Static method in class com.android.resources.ResourceUrl
Creates a new resource URL, representing "@namespace:type/name".
createAttrReference(String, String) - Static method in class com.android.resources.ResourceUrl
Creates a new resource URL, representing "namespace:name".
createResult() - Method in enum com.android.ide.common.rendering.api.Result.Status
Returns a Result object with this status.
createResult(Object) - Method in enum com.android.ide.common.rendering.api.Result.Status
Returns a Result object with this status, and the given data.
createResult(String, Throwable) - Method in enum com.android.ide.common.rendering.api.Result.Status
Returns a Result.Status.ERROR_UNKNOWN result with the given message and throwable
createResult(String) - Method in enum com.android.ide.common.rendering.api.Result.Status
Returns a Result.Status.ERROR_UNKNOWN result with the given message
createSession(SessionParams) - Method in class com.android.ide.common.rendering.api.Bridge
Starts a layout session by inflating and rendering it.
createThemeReference(String, ResourceType, String) - Static method in class com.android.resources.ResourceUrl
Creates a new resource URL, representing "?namespace:type/name".
createXmlParser() - Method in interface com.android.ide.common.rendering.api.XmlParserFactory
Creates and returns an XmlPullParser.
createXmlParserForFile(String) - Method in interface com.android.ide.common.rendering.api.XmlParserFactory
Returns an XmlPullParser for the non-PSI version of an XML file.
createXmlParserForPsiFile(String) - Method in interface com.android.ide.common.rendering.api.XmlParserFactory
Returns an XmlPullParser for the PSI version of an XML file.
CUSTOM_BACKGROUND_COLOR - Static variable in class com.android.ide.common.rendering.api.Features
Ability to override the background of the rendering with transparency using RenderParams.setOverrideBgColor(int)

D

DataBindingItem - Class in com.android.ide.common.rendering.api
A data binding item.
DataBindingItem(ResourceReference, int) - Constructor for class com.android.ide.common.rendering.api.DataBindingItem
 
DataBindingItem(String, boolean, int) - Constructor for class com.android.ide.common.rendering.api.DataBindingItem
 
DEFAULT_DENSITY - Static variable in enum com.android.resources.Density
 
DEFAULT_TIMEOUT - Static variable in class com.android.ide.common.rendering.api.RenderParams
 
Density - Enum in com.android.resources
Allowed values of screen density.
DensityBasedResourceValue - Interface in com.android.ide.common.rendering.api
Represents an Android resource value associated with a particular screen density.
DensityBasedResourceValueImpl - Class in com.android.ide.common.rendering.api
 
DensityBasedResourceValueImpl(ResourceNamespace, ResourceType, String, String, Density, String) - Constructor for class com.android.ide.common.rendering.api.DensityBasedResourceValueImpl
 
DensityBasedResourceValueImpl(ResourceReference, String, Density) - Constructor for class com.android.ide.common.rendering.api.DensityBasedResourceValueImpl
 
dereference(ResourceValue) - Method in class com.android.ide.common.rendering.api.RenderResources
Searches for a ResourceValue referenced by the given value.
DEVICE_GALAXY_NEXUS - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
Device names These correspond to the 'hw.device.name' field in an AVD's config.ini
DEVICE_NEXUS_10 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_4 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_5 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_5X - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_6 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_6P - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_7 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_7_2013 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_9 - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_ONE - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_NEXUS_S - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_PIXEL - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_PIXEL_C - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
DEVICE_PIXEL_XL - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
 
dispose() - Method in class com.android.ide.common.rendering.api.Bridge
Prepares the layoutlib to unloaded.
dispose() - Method in class com.android.ide.common.rendering.api.RenderSession
Discards the layout.
done(Result) - Method in interface com.android.ide.common.rendering.api.IAnimationListener
Called when the animation is done playing.
DrawableParams - Class in com.android.ide.common.rendering.api
Rendering parameters for Bridge.renderDrawable(DrawableParams)
DrawableParams(ResourceValue, Object, HardwareConfig, RenderResources, LayoutlibCallback, int, int, LayoutLog) - Constructor for class com.android.ide.common.rendering.api.DrawableParams
Builds a param object with all the necessary parameters to render a drawable with Bridge.renderDrawable(DrawableParams)
DrawableParams(DrawableParams) - Constructor for class com.android.ide.common.rendering.api.DrawableParams
 

E

EMBEDDED_LAYOUT - Static variable in class com.android.ide.common.rendering.api.Features
Ability to control embedded layout parsers through ILayoutPullParser#getParser(String)
EMPTY_ARRAY - Static variable in enum com.android.resources.Arity
 
EMPTY_RESOLVER - Static variable in interface com.android.ide.common.rendering.api.ResourceNamespace.Resolver
 
equals(Object) - Method in class com.android.ide.common.rendering.api.DensityBasedResourceValueImpl
 
equals(Object) - Method in class com.android.ide.common.rendering.api.ResourceNamespace
 
equals(Object) - Method in class com.android.ide.common.rendering.api.ResourceReference
 
equals(Object) - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
equals(Object) - Method in class com.android.ide.common.rendering.api.SessionParams.Key
 
equals(Object) - Method in class com.android.ide.common.rendering.api.TextResourceValueImpl
 
equals(Object) - Method in class com.android.resources.ResourceUrl
 
equals(Object) - Method in class com.android.util.Pair
Deprecated.
 
error(String, String, Object, Object) - Method in interface com.android.ide.common.rendering.api.ILayoutLog
Logs an error.
error(String, String, Throwable, Object, Object) - Method in interface com.android.ide.common.rendering.api.ILayoutLog
Logs an error, and the Throwable that triggered it.
error(String, String, Object) - Method in class com.android.ide.common.rendering.api.LayoutLog
error(String, String, Throwable, Object) - Method in class com.android.ide.common.rendering.api.LayoutLog
EXTENDED_VIEWINFO - Static variable in class com.android.ide.common.rendering.api.Features
 

F

FD_NAVIGATION - Static variable in class com.android.resources.ResourceConstants
Default navigation resource folder name, i.e.
FD_RES_ANIM - Static variable in class com.android.resources.ResourceConstants
Default anim resource folder name, i.e.
FD_RES_ANIMATOR - Static variable in class com.android.resources.ResourceConstants
Default animator resource folder name, i.e.
FD_RES_COLOR - Static variable in class com.android.resources.ResourceConstants
Default color resource folder name, i.e.
FD_RES_DRAWABLE - Static variable in class com.android.resources.ResourceConstants
Default drawable resource folder name, i.e.
FD_RES_FONT - Static variable in class com.android.resources.ResourceConstants
Default font resource folder name, i.e.
FD_RES_INTERPOLATOR - Static variable in class com.android.resources.ResourceConstants
Default interpolator resource folder name, i.e.
FD_RES_LAYOUT - Static variable in class com.android.resources.ResourceConstants
Default layout resource folder name, i.e.
FD_RES_MENU - Static variable in class com.android.resources.ResourceConstants
Default menu resource folder name, i.e.
FD_RES_MIPMAP - Static variable in class com.android.resources.ResourceConstants
Default menu resource folder name, i.e.
FD_RES_RAW - Static variable in class com.android.resources.ResourceConstants
Default raw resource folder name, i.e.
FD_RES_TRANSITION - Static variable in class com.android.resources.ResourceConstants
Default transition resource folder name, i.e.
FD_RES_VALUES - Static variable in class com.android.resources.ResourceConstants
Default values resource folder name, i.e.
FD_RES_XML - Static variable in class com.android.resources.ResourceConstants
Default xml resource folder name, i.e.
Features - Class in com.android.ide.common.rendering.api
List of features describing the LayoutLib capabilities.
Features() - Constructor for class com.android.ide.common.rendering.api.Features
 
fidelityWarning(String, String, Throwable, Object, Object) - Method in interface com.android.ide.common.rendering.api.ILayoutLog
Logs a fidelity warning.
fidelityWarning(String, String, Throwable, Object) - Method in class com.android.ide.common.rendering.api.LayoutLog
findClass(String) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Finds a custom class in the project.
findItemInStyle(StyleResourceValue, ResourceReference) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns the ResourceValue matching a given attribute in a given style.
findItemInTheme(ResourceReference) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns the ResourceValue for a given attr in the all themes returned by RenderResources.getAllThemes().
findResValue(String, boolean) - Method in class com.android.ide.common.rendering.api.RenderResources
Deprecated.
Use RenderResources.dereference(ResourceValue) instead, to provide context necessary to handle namespaces correctly, like the "current" namespace or namespace prefix lookup logic. Alternatively, use RenderResources.getUnresolvedResource(ResourceReference) or RenderResources.getResolvedResource(ResourceReference) if you already know exactly what you're looking for.
FIXED_SCALABLE_NINE_PATCH - Static variable in class com.android.ide.common.rendering.api.Features
Ability to properly resize nine-patch assets.
FolderTypeRelationship - Class in com.android.resources
This class gives access to the bidirectional relationship between ResourceType and ResourceFolderType.
FolderTypeRelationship() - Constructor for class com.android.resources.FolderTypeRelationship
 
fromBiMap(BiMap<String, String>) - Static method in interface com.android.ide.common.rendering.api.ResourceNamespace.Resolver
Creates a new ResourceNamespace.Resolver which looks up prefix definitions in the given BiMap.
fromBoolean(boolean) - Static method in class com.android.ide.common.rendering.api.ResourceNamespace
Deprecated.
fromClassName(String) - Static method in enum com.android.resources.ResourceType
Returns the enum by its name as it appears in the R class.
fromFolderName(String) - Static method in enum com.android.resources.ResourceType
Returns the enum by its name as it appears as a folder name under res/.
fromNamespacePrefix(String, ResourceNamespace, ResourceNamespace.Resolver) - Static method in class com.android.ide.common.rendering.api.ResourceNamespace
Tries to build a ResourceNamespace from the first part of a ResourceUrl, given the context in which the string was used.
fromNamespaceUri(String) - Static method in class com.android.ide.common.rendering.api.ResourceNamespace
Constructs a ResourceNamespace for the given URI, as used in XML resource files.
fromPackageName(String) - Static method in class com.android.ide.common.rendering.api.ResourceNamespace
Constructs a ResourceNamespace for the given (fully qualified) aapt package name.
fromXmlName(String) - Static method in enum com.android.ide.common.rendering.api.AttributeFormat
Returns the format given its XML name.
fromXmlTag(T, Function<T, String>, BiFunction<T, String, String>) - Static method in enum com.android.resources.ResourceType
 
fromXmlTag(Node) - Static method in enum com.android.resources.ResourceType
 
fromXmlTagName(String) - Static method in enum com.android.resources.ResourceType
Returns the enum by its name as it appears in XML as a tag name.
fromXmlValue(String) - Static method in enum com.android.resources.ResourceType
Returns the enum by its name as it appears in a ResourceUrl string.
FULL_ANIMATED_VIEW_MANIPULATION - Static variable in class com.android.ide.common.rendering.api.Features
Ability to move views (even into a different ViewGroup) with animation.

G

getActionBarCallback() - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns a callback for Action Bar information needed by the Layout Library.
getActivityName() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getAdapterBinding(ResourceReference, Object, Object) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns an adapter binding for a given adapter view.
getAdapterBindings() - Method in class com.android.ide.common.rendering.api.SessionParams
 
getAdapterItemValue(ResourceReference, Object, ResourceReference, int, int, int, int, ResourceReference, LayoutlibCallback.ViewAttribute, Object) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns the value of an item used by an adapter.
getAllAttributes() - Method in interface com.android.ide.common.rendering.api.StyleableResourceValue
 
getAllAttributes() - Method in class com.android.ide.common.rendering.api.StyleableResourceValueImpl
 
getAllThemes() - Method in class com.android.ide.common.rendering.api.RenderResources
Returns a list of StyleResourceValue containing a list of themes to be used for resolving resources.
getApiLevel() - Method in class com.android.ide.common.rendering.api.Bridge
Returns the API level of the layout library.
getAppIcon() - Method in class com.android.ide.common.rendering.api.RenderParams
Returns the application icon resource, or null if there is no icon.
getAppLabel() - Method in class com.android.ide.common.rendering.api.RenderParams
Returns the application label, or null if there is no label.
getAssets() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getAttr() - Method in interface com.android.ide.common.rendering.api.StyleItemResourceValue
Returns a ResourceReference to the attr resource this item is defined for, if the name was specified using the correct syntax.
getAttr() - Method in class com.android.ide.common.rendering.api.StyleItemResourceValueImpl
Returns a ResourceReference to the attr resource this item is defined for, if the name was specified using the correct syntax.
getAttributeClass() - Method in enum com.android.ide.common.rendering.api.LayoutlibCallback.ViewAttribute
 
getAttributeValues() - Method in interface com.android.ide.common.rendering.api.AttrResourceValue
Returns the enum or flag integer values keyed by the value names.
getAttributeValues() - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
 
getAttrName() - Method in interface com.android.ide.common.rendering.api.StyleItemResourceValue
Returns contents of the name XML attribute that defined this style item.
getAttrName() - Method in class com.android.ide.common.rendering.api.StyleItemResourceValueImpl
Returns contents of the name XML attribute that defined this style item.
getBaseLine() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the baseline value.
getBottom() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the bottom of the view bounds, relative to the view parent bounds.
getBottomMargin() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the bottom margin value.
getByIndex(int) - Static method in enum com.android.resources.Density
 
getByIndex(int) - Static method in enum com.android.resources.HighDynamicRange
 
getByIndex(int) - Static method in enum com.android.resources.Keyboard
 
getByIndex(int) - Static method in enum com.android.resources.KeyboardState
 
getByIndex(int) - Static method in enum com.android.resources.LayoutDirection
 
getByIndex(int) - Static method in enum com.android.resources.Navigation
 
getByIndex(int) - Static method in enum com.android.resources.NavigationState
 
getByIndex(int) - Static method in enum com.android.resources.NightMode
 
getByIndex(int) - Static method in enum com.android.resources.ScreenOrientation
 
getByIndex(int) - Static method in enum com.android.resources.ScreenRatio
 
getByIndex(int) - Static method in enum com.android.resources.ScreenRound
 
getByIndex(int) - Static method in enum com.android.resources.ScreenSize
 
getByIndex(int) - Static method in enum com.android.resources.TouchScreen
 
getByIndex(int) - Static method in enum com.android.resources.UiMode
 
getByIndex(int) - Static method in enum com.android.resources.WideGamutColor
 
getByShortDisplayName(String) - Static method in enum com.android.resources.ScreenOrientation
 
getCanBeReferenced() - Method in enum com.android.resources.ResourceType
Returns true if this ResourceType can be referenced using the ResourceUrl syntax: @typeName/resourceName.
getCapabilities() - Method in class com.android.ide.common.rendering.api.Bridge
Deprecated.
getChildren() - Method in class com.android.ide.common.rendering.api.DataBindingItem
 
getChildren() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the list of children views.
getClassName() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the class name of the view object.
getConfigScreenSize() - Method in class com.android.ide.common.rendering.api.RenderParams
getCookie() - Method in class com.android.ide.common.rendering.api.MergeCookie
 
getCookie() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the cookie associated with the XML node.
getCopyWithData(Object) - Method in class com.android.ide.common.rendering.api.Result
Returns a copy of the current result with the added (or replaced) given data
getCount() - Method in class com.android.ide.common.rendering.api.DataBindingItem
The repeat count for this object or the repeat count for the children if there are any.
getData() - Method in class com.android.ide.common.rendering.api.Result
Returns the optional data bundle stored in the result object.
getDefaultIndex() - Method in class com.android.ide.common.rendering.api.ArrayResourceValueImpl
Returns the index of the element to pick by default if a client of layoutlib asks for the ArrayResourceValueImpl.getValue() rather than the more specific ArrayResourceValue iteration methods
getDefaultNamespacedProperties() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns the map of View Cookie → properties (attribute name, attribute value) for all the views that have a view cookie.
getDefaultNamespacedStyles() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns the map of View Cookie → default style for all the views that have a view cookie.
getDefaultStyles() - Method in class com.android.ide.common.rendering.api.RenderSession
Deprecated.
getDefaultTheme() - Method in class com.android.ide.common.rendering.api.RenderResources
Returns the StyleResourceValue representing the default theme.
getDefinedItems() - Method in interface com.android.ide.common.rendering.api.StyleResourceValue
Returns a list of all items defined in this Style.
getDefinedItems() - Method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
 
getDensity() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getDensity() - Method in class com.android.ide.common.rendering.api.RenderParams
getDensityDpi() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getDescription() - Method in interface com.android.ide.common.rendering.api.AttrResourceValue
Returns the description of the attr resource obtained from an XML comment.
getDescription() - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
 
getDisplayName() - Method in enum com.android.resources.ResourceType
Returns a translated display name for the resource type.
getDpiValue() - Method in enum com.android.resources.Density
 
getDrawable() - Method in class com.android.ide.common.rendering.api.DrawableParams
 
getElement(int) - Method in interface com.android.ide.common.rendering.api.ArrayResourceValue
Returns the array element value at the given index position.
getElement(int) - Method in class com.android.ide.common.rendering.api.ArrayResourceValueImpl
 
getElementCount() - Method in interface com.android.ide.common.rendering.api.ArrayResourceValue
Returns the number of elements in this array.
getElementCount() - Method in class com.android.ide.common.rendering.api.ArrayResourceValueImpl
 
getEnum(String) - Static method in enum com.android.resources.Arity
 
getEnum(String) - Static method in enum com.android.resources.Density
Returns the enum matching the provided qualifier value.
getEnum(int) - Static method in enum com.android.resources.Density
Returns the enum matching the given DPI value.
getEnum(String) - Static method in enum com.android.resources.HighDynamicRange
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.Keyboard
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.KeyboardState
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.LayoutDirection
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.Navigation
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.NavigationState
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.NightMode
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.ResourceType
Deprecated.
Use other static methods in this class. Kept for layoutlib binary compatibility.
getEnum(String) - Static method in enum com.android.resources.ResourceVisibility
 
getEnum(String) - Static method in enum com.android.resources.ScreenOrientation
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.ScreenRatio
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.ScreenRound
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.ScreenSize
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.TouchScreen
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.UiMode
Returns the enum for matching the provided qualifier value.
getEnum(String) - Static method in enum com.android.resources.WideGamutColor
Returns the enum for matching the provided qualifier value.
getErrorMessage() - Method in class com.android.ide.common.rendering.api.Result
Returns the error message.
getException() - Method in class com.android.ide.common.rendering.api.Result
Returns the exception.
getExtendedViewInfoMode() - Method in class com.android.ide.common.rendering.api.SessionParams
 
getFirst() - Method in class com.android.util.Pair
Deprecated.
Return the first item in the pair
getFlag(SessionParams.Key<T>) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
A callback to query arbitrary data.
getFlag(SessionParams.Key<T>) - Method in class com.android.ide.common.rendering.api.RenderParams
 
getFolderType(String) - Static method in enum com.android.resources.ResourceFolderType
Returns the ResourceFolderType from the folder name
getFooterAt(int) - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getFooterCount() - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getFormats() - Method in interface com.android.ide.common.rendering.api.AttrResourceValue
Returns the formats allowed for the values of the attribute.
getFormats() - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
 
getGroupName() - Method in interface com.android.ide.common.rendering.api.AttrResourceValue
Returns the name of the attr group obtained from an XML comment.
getGroupName() - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
 
getHardwareConfig() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getHasInnerClass() - Method in enum com.android.resources.ResourceType
Returns true if the generated R class contains an inner class for this ResourceType.
getHeaderAt(int) - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getHeaderCount() - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getHomeButtonStyle() - Method in class com.android.ide.common.rendering.api.ActionBarCallback
Returns the type of navigation for home button to be used in the action bar.
getIdGeneratingFolderTypes() - Static method in class com.android.resources.FolderTypeRelationship
 
getImage(int, int) - Method in interface com.android.ide.common.rendering.api.IImageFactory
Creates a buffered image with the given size
getImage() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns the rendering of the full layout.
getImageFactory() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getImplicitNamespaces() - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns an optional ResourceNamespace.Resolver that knows namespace prefixes assumed to be declared in every resource file.
getIndex(Density) - Static method in enum com.android.resources.Density
 
getIndex(HighDynamicRange) - Static method in enum com.android.resources.HighDynamicRange
 
getIndex(Keyboard) - Static method in enum com.android.resources.Keyboard
 
getIndex(KeyboardState) - Static method in enum com.android.resources.KeyboardState
 
getIndex(LayoutDirection) - Static method in enum com.android.resources.LayoutDirection
 
getIndex(Navigation) - Static method in enum com.android.resources.Navigation
 
getIndex(NavigationState) - Static method in enum com.android.resources.NavigationState
 
getIndex(NightMode) - Static method in enum com.android.resources.NightMode
 
getIndex(ScreenOrientation) - Static method in enum com.android.resources.ScreenOrientation
 
getIndex(ScreenRatio) - Static method in enum com.android.resources.ScreenRatio
 
getIndex(ScreenRound) - Static method in enum com.android.resources.ScreenRound
 
getIndex(ScreenSize) - Static method in enum com.android.resources.ScreenSize
 
getIndex(TouchScreen) - Static method in enum com.android.resources.TouchScreen
 
getIndex(UiMode) - Static method in enum com.android.resources.UiMode
 
getIndex(WideGamutColor) - Static method in enum com.android.resources.WideGamutColor
 
getItem(ResourceNamespace, String) - Method in interface com.android.ide.common.rendering.api.StyleResourceValue
Finds the item for the given qualified attr name in this style (if it's defined in this style).
getItem(ResourceReference) - Method in interface com.android.ide.common.rendering.api.StyleResourceValue
Finds the item for the given attr in this style (if it's defined in this style).
getItem(ResourceNamespace, String) - Method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
 
getItem(ResourceReference) - Method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
 
getItemAt(int) - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getItemCount() - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getLayoutDescription() - Method in class com.android.ide.common.rendering.api.SessionParams
 
getLayoutlibCallback() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getLayoutNamespace() - Method in interface com.android.ide.common.rendering.api.ILayoutPullParser
Returns the aapt ResourceNamespace of the layout being parsed, that is of the module from which this layout comes from.
getLayoutParamsObject() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the actual android.view.ViewGroup$LayoutParams (or child class) object.
getLeft() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the left of the view bounds, relative to the view parent bounds.
getLeftMargin() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the left margin value.
getLibraryName() - Method in interface com.android.ide.common.rendering.api.ResourceValue
Returns the name of the library where this resource was found or null if it is not from a library.
getLibraryName() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
getLocale() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getLog() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getLongDisplayValue() - Method in enum com.android.resources.Density
 
getLongDisplayValue() - Method in enum com.android.resources.HighDynamicRange
 
getLongDisplayValue() - Method in enum com.android.resources.Keyboard
 
getLongDisplayValue() - Method in enum com.android.resources.KeyboardState
 
getLongDisplayValue() - Method in enum com.android.resources.LayoutDirection
 
getLongDisplayValue() - Method in enum com.android.resources.Navigation
 
getLongDisplayValue() - Method in enum com.android.resources.NavigationState
 
getLongDisplayValue() - Method in enum com.android.resources.NightMode
 
getLongDisplayValue() - Method in interface com.android.resources.ResourceEnum
Returns a long string for display value.
getLongDisplayValue() - Method in enum com.android.resources.ScreenOrientation
 
getLongDisplayValue() - Method in enum com.android.resources.ScreenRatio
 
getLongDisplayValue() - Method in enum com.android.resources.ScreenRound
 
getLongDisplayValue() - Method in enum com.android.resources.ScreenSize
 
getLongDisplayValue() - Method in enum com.android.resources.TouchScreen
 
getLongDisplayValue() - Method in enum com.android.resources.UiMode
 
getLongDisplayValue() - Method in enum com.android.resources.WideGamutColor
 
getMatchingTypes() - Method in enum com.android.ide.common.rendering.api.AttributeFormat
Returns the set of matching resource types.
getMenuIds() - Method in class com.android.ide.common.rendering.api.ActionBarCallback
Returns a list of resource references of the IDs for menus to add to the action bar.
getMinSdkVersion() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getName() - Method in enum com.android.ide.common.rendering.api.AttributeFormat
Returns the name used for the format in XML.
getName() - Method in class com.android.ide.common.rendering.api.ResourceReference
Returns the name of the resource, as defined in the XML.
getName() - Method in interface com.android.ide.common.rendering.api.ResourceValue
 
getName() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
getName() - Method in interface com.android.ide.common.rendering.api.StyleItemResourceValue
Deprecated.
getName() - Method in class com.android.ide.common.rendering.api.StyleItemResourceValueImpl
Deprecated.
TODO(namespaces): Throw in this method, once layoutlib correctly calls StyleItemResourceValueImpl.getAttr() instead.
getName() - Method in enum com.android.resources.Arity
 
getName() - Method in enum com.android.resources.ResourceFolderType
Returns the folder name for this resource folder type.
getName() - Method in enum com.android.resources.ResourceType
Returns the resource type name, as used by XML files.
getName() - Method in enum com.android.resources.ResourceVisibility
 
getNamespace() - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns the namespace URI of the application.
getNamespace() - Method in class com.android.ide.common.rendering.api.ResourceReference
 
getNamespace() - Method in interface com.android.ide.common.rendering.api.ResourceValue
 
getNamespace() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
getNamespaceResolver() - Method in interface com.android.ide.common.rendering.api.ResourceValue
Returns the namespace resolver that can be used to resolve any name prefixes in the string values associated with this resource.
getNamespaceResolver() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
getNavigationMode() - Method in class com.android.ide.common.rendering.api.ActionBarCallback
Returns which navigation mode the action bar should use.
getNonIdRelatedResourceType(ResourceFolderType) - Static method in class com.android.resources.FolderTypeRelationship
Returns a single ResourceType that can be generated from files inside a folder of the specified type and which is not ResourceType.ID.
getNonValuesRelatedFolder(ResourceType) - Static method in class com.android.resources.FolderTypeRelationship
Returns the ResourceFolderType corresponding to a given ResourceType, that is a folder that can contain files generating resources of the specified type and is not ResourceFolderType.VALUES, if one exists.
getOrGenerateResourceId(ResourceReference) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns the numeric id for the given resource, potentially generating a fresh ID.
getOrientation() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getOverrideBgColor() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getPackageName() - Method in class com.android.ide.common.rendering.api.ResourceNamespace
Returns the package associated with this namespace, or null in the case of ResourceNamespace.RES_AUTO.
getParent(StyleResourceValue) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns the parent style of the given style, if any
getParentStyle() - Method in interface com.android.ide.common.rendering.api.StyleResourceValue
Returns a reference to the parent style, if it can be determined based on the explicit parent reference in XML, or by using the part of the name of this style before the last dot.
getParentStyleName() - Method in interface com.android.ide.common.rendering.api.StyleResourceValue
Returns value of the parent XML attribute of this style.
getParentStyleName() - Method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
 
getParser(ResourceValue) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns a custom parser for a value
getPluralsCount() - Method in interface com.android.ide.common.rendering.api.PluralsResourceValue
Returns the number of plural strings.
getPluralsCount() - Method in class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
getProjectKey() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getProperty(Object, String) - Method in class com.android.ide.common.rendering.api.RenderSession
returns the value of a given property on a given object.
getQualifiedName() - Method in class com.android.ide.common.rendering.api.ResourceReference
If the package name of the namespace is not null, returns the name of the resource prefixed by the package name with a colon separator.
getQualifiedName() - Method in class com.android.resources.ResourceUrl
Returns a short string representation, which includes just the namespace (if defined in this ResourceUrl and name, separated by a colon.
getQuantity(int) - Method in interface com.android.ide.common.rendering.api.PluralsResourceValue
Returns the quantity at the given index, such as "one", "two", "few", etc.
getQuantity(int) - Method in class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
getRawXmlValue() - Method in interface com.android.ide.common.rendering.api.ResourceValue
Similar to ResourceValue.getValue(), but returns the raw XML value.
getRawXmlValue() - Method in class com.android.ide.common.rendering.api.TextResourceValueImpl
 
getRecommendedValuesForDevice() - Static method in enum com.android.resources.Density
Returns all densities which are recommended and valid for a device.
getReference() - Method in interface com.android.ide.common.rendering.api.ResourceValue
If this ResourceValue references another one, returns a ResourceReference to it, otherwise null.
getReference() - Method in class com.android.ide.common.rendering.api.SampleDataResourceValueImpl
 
getRelatedFolders(ResourceType) - Static method in class com.android.resources.FolderTypeRelationship
Returns a list of ResourceFolderType that can contain files generating resources of the specified type.
getRelatedResourceTypes(ResourceFolderType) - Static method in class com.android.resources.FolderTypeRelationship
Returns a list of ResourceTypes that can be generated from files inside a folder of the specified type.
getRelativeResourceUrl(ResourceNamespace) - Method in class com.android.ide.common.rendering.api.ResourceReference
Returns a ResourceUrl that can be used to refer to this resource from the given namespace.
getRelativeResourceUrl(ResourceNamespace, ResourceNamespace.Resolver) - Method in class com.android.ide.common.rendering.api.ResourceReference
Returns a ResourceUrl that can be used to refer to this resource from the given namespace.
getRenderingMode() - Method in class com.android.ide.common.rendering.api.SessionParams
 
getRepeatCount() - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
getResolvedResource(ResourceReference) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns a resource by namespace, type and name.
getResourceDensity() - Method in interface com.android.ide.common.rendering.api.DensityBasedResourceValue
Returns the density for which this resource is configured.
getResourceDensity() - Method in class com.android.ide.common.rendering.api.DensityBasedResourceValueImpl
 
getResources() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getResourceType() - Method in class com.android.ide.common.rendering.api.ResourceReference
 
getResourceType() - Method in interface com.android.ide.common.rendering.api.ResourceValue
 
getResourceType() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
getResourceUrl() - Method in class com.android.ide.common.rendering.api.ResourceReference
 
getResourceUrl() - Method in interface com.android.ide.common.rendering.api.ResourceValue
 
getResourceValue() - Method in enum com.android.resources.Density
 
getResourceValue() - Method in enum com.android.resources.HighDynamicRange
 
getResourceValue() - Method in enum com.android.resources.Keyboard
 
getResourceValue() - Method in enum com.android.resources.KeyboardState
 
getResourceValue() - Method in enum com.android.resources.LayoutDirection
 
getResourceValue() - Method in enum com.android.resources.Navigation
 
getResourceValue() - Method in enum com.android.resources.NavigationState
 
getResourceValue() - Method in enum com.android.resources.NightMode
 
getResourceValue() - Method in interface com.android.resources.ResourceEnum
Returns the resource string.
getResourceValue() - Method in enum com.android.resources.ScreenOrientation
 
getResourceValue() - Method in enum com.android.resources.ScreenRatio
 
getResourceValue() - Method in enum com.android.resources.ScreenRound
 
getResourceValue() - Method in enum com.android.resources.ScreenSize
 
getResourceValue() - Method in enum com.android.resources.TouchScreen
 
getResourceValue() - Method in enum com.android.resources.UiMode
 
getResourceValue() - Method in enum com.android.resources.WideGamutColor
 
getResult() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns the last operation result.
getRevision() - Method in class com.android.ide.common.rendering.api.Bridge
Returns the revision of the library inside a given (layoutlib) API level.
getRight() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the right of the view bounds, relative to the view parent bounds.
getRightMargin() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the right margin value.
getRootViews() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns the ViewInfo objects for the top level views.
getScreenHeight() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getScreenHeight() - Method in class com.android.ide.common.rendering.api.RenderParams
getScreenRoundness() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getScreenSize() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getScreenSize(Double) - Static method in enum com.android.resources.ScreenSize
Get the resource bucket value that corresponds to the given size in inches.
getScreenWidth() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getScreenWidth() - Method in class com.android.ide.common.rendering.api.RenderParams
getSecond() - Method in class com.android.util.Pair
Deprecated.
Return the second item in the pair
getShortDisplayValue() - Method in enum com.android.resources.Density
 
getShortDisplayValue() - Method in enum com.android.resources.HighDynamicRange
 
getShortDisplayValue() - Method in enum com.android.resources.Keyboard
 
getShortDisplayValue() - Method in enum com.android.resources.KeyboardState
 
getShortDisplayValue() - Method in enum com.android.resources.LayoutDirection
 
getShortDisplayValue() - Method in enum com.android.resources.Navigation
 
getShortDisplayValue() - Method in enum com.android.resources.NavigationState
 
getShortDisplayValue() - Method in enum com.android.resources.NightMode
 
getShortDisplayValue() - Method in interface com.android.resources.ResourceEnum
Returns a short string for display value.
getShortDisplayValue() - Method in enum com.android.resources.ScreenOrientation
 
getShortDisplayValue() - Method in enum com.android.resources.ScreenRatio
 
getShortDisplayValue() - Method in enum com.android.resources.ScreenRound
 
getShortDisplayValue() - Method in enum com.android.resources.ScreenSize
 
getShortDisplayValue() - Method in enum com.android.resources.TouchScreen
 
getShortDisplayValue() - Method in enum com.android.resources.UiMode
 
getShortDisplayValue() - Method in enum com.android.resources.WideGamutColor
 
getSimulatedPlatformVersion() - Method in class com.android.ide.common.rendering.api.SessionParams
 
getSplitActionBarWhenNarrow() - Method in class com.android.ide.common.rendering.api.ActionBarCallback
Returns whether the Action Bar should be split for narrow screens.
getStatus() - Method in class com.android.ide.common.rendering.api.Result
Returns the status.
getStyle(ResourceReference) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns the style matching the given reference.
getSubTitle() - Method in class com.android.ide.common.rendering.api.ActionBarCallback
Returns the subtitle to be used with the action bar or null if there is no subtitle.
getSystemRootViews() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns the ViewInfo objects for the system decor views, like the ActionBar.
getTargetSdkVersion() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getTimeout() - Method in class com.android.ide.common.rendering.api.RenderParams
 
getTop() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the top of the view bounds, relative to the view parent bounds.
getTopMargin() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the top margin value.
getTypeByName(String) - Static method in enum com.android.resources.ResourceFolderType
Returns the enum by name.
getUnresolvedResource(ResourceReference) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns a resource by namespace, type and name.
getValue() - Method in class com.android.ide.common.rendering.api.ArrayResourceValueImpl
 
getValue(int) - Method in interface com.android.ide.common.rendering.api.PluralsResourceValue
Returns the string element at the given index position.
getValue(String) - Method in interface com.android.ide.common.rendering.api.PluralsResourceValue
Returns the string element for the given quantity
getValue(int) - Method in class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
getValue(String) - Method in class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
getValue() - Method in class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
getValue() - Method in interface com.android.ide.common.rendering.api.ResourceValue
Returns the value of the resource, as defined in the XML.
getValue() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
getValue() - Method in class com.android.ide.common.rendering.api.SampleDataResourceValueImpl
 
getValueAsLines() - Method in interface com.android.ide.common.rendering.api.SampleDataResourceValue
 
getValueAsLines() - Method in class com.android.ide.common.rendering.api.SampleDataResourceValueImpl
 
getValueDescription(String) - Method in interface com.android.ide.common.rendering.api.AttrResourceValue
Returns the description of a enum/flag value with the given name.
getValueDescription(String) - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
 
getViewBaseline(Object) - Method in class com.android.ide.common.rendering.api.Bridge
Deprecated.
use the extended ViewInfo.
getViewCookie() - Method in interface com.android.ide.common.rendering.api.ILayoutPullParser
Returns a cookie for the current XML node.
getViewIndex(Object) - Method in class com.android.ide.common.rendering.api.Bridge
Utility method returning the index of a given view in its parent.
getViewObject() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the actual android.view.View (or child class) object.
getViewParent(Object) - Method in class com.android.ide.common.rendering.api.Bridge
Utility method returning the parent of a given view object.
getViewReference() - Method in class com.android.ide.common.rendering.api.DataBindingItem
Returns the ResourceReference for the view.
getViewType() - Method in class com.android.ide.common.rendering.api.ViewInfo
Returns the type of View.
getXdpi() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getXdpi() - Method in class com.android.ide.common.rendering.api.RenderParams
getXmlNamespaceUri() - Method in class com.android.ide.common.rendering.api.ResourceNamespace
 
getYdpi() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
getYdpi() - Method in class com.android.ide.common.rendering.api.RenderParams

H

HardwareConfig - Class in com.android.ide.common.rendering.api
Hardware configuration for the rendering.
HardwareConfig(int, int, Density, float, float, ScreenSize, ScreenOrientation, ScreenRound, boolean) - Constructor for class com.android.ide.common.rendering.api.HardwareConfig
 
hasAndroidXAppCompat() - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns true if the module depends on androidx.appcompat.
hashCode() - Method in class com.android.ide.common.rendering.api.DensityBasedResourceValueImpl
 
hashCode() - Method in class com.android.ide.common.rendering.api.ResourceNamespace
 
hashCode() - Method in class com.android.ide.common.rendering.api.ResourceReference
 
hashCode() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
hashCode() - Method in class com.android.ide.common.rendering.api.SessionParams.Key
 
hashCode() - Method in class com.android.ide.common.rendering.api.TextResourceValueImpl
 
hashCode() - Method in class com.android.resources.ResourceUrl
 
hashCode() - Method in class com.android.util.Pair
Deprecated.
 
hasLegacyAppCompat() - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns true if the module depends on android.support.v7.appcompat.
hasSoftwareButtons() - Method in class com.android.ide.common.rendering.api.HardwareConfig
 
hasValidName() - Method in class com.android.resources.ResourceUrl
Checks whether this resource has a valid name.
HighDynamicRange - Enum in com.android.resources
High Dynamic Range

I

IAnimationListener - Interface in com.android.ide.common.rendering.api
 
IImageFactory - Interface in com.android.ide.common.rendering.api
Image Factory Interface.
ILayoutLog - Interface in com.android.ide.common.rendering.api
Log interface for actions executed through Bridge and RenderSession.
ILayoutPullParser - Interface in com.android.ide.common.rendering.api
Extended version of XmlPullParser to use with Bridge.createSession(SessionParams)
init(Map<String, String>, File, String, Map<String, Map<String, Integer>>, LayoutLog) - Method in class com.android.ide.common.rendering.api.Bridge
Initializes the Bridge object.
insertChild(Object, ILayoutPullParser, int, IAnimationListener) - Method in class com.android.ide.common.rendering.api.RenderSession
Inserts a new child in a ViewGroup object, and renders the result.
isAlphaChannelImage() - Method in class com.android.ide.common.rendering.api.RenderSession
Returns true if the current image alpha channel is relevant.
isBgColorOverridden() - Method in class com.android.ide.common.rendering.api.RenderParams
 
isCanceled() - Method in interface com.android.ide.common.rendering.api.IAnimationListener
Return true to cancel the animation.
isCreate() - Method in class com.android.resources.ResourceUrl
Whether an id resource is of the form @+id rather than just @id.
isDefaultParentStyleName(String, String) - Static method in interface com.android.ide.common.rendering.api.StyleResourceValue
 
isDensityBasedResourceType(ResourceType) - Static method in interface com.android.ide.common.rendering.api.DensityBasedResourceValue
Checks if resources of the given resource type should be created as density based when they belong to a folder with a density qualifier.
isFakeValue() - Method in enum com.android.resources.Density
 
isFakeValue() - Method in enum com.android.resources.HighDynamicRange
 
isFakeValue() - Method in enum com.android.resources.Keyboard
 
isFakeValue() - Method in enum com.android.resources.KeyboardState
 
isFakeValue() - Method in enum com.android.resources.LayoutDirection
 
isFakeValue() - Method in enum com.android.resources.Navigation
 
isFakeValue() - Method in enum com.android.resources.NavigationState
 
isFakeValue() - Method in enum com.android.resources.NightMode
 
isFakeValue() - Method in interface com.android.resources.ResourceEnum
Whether the value is neither used for device nor resources.
isFakeValue() - Method in enum com.android.resources.ScreenOrientation
 
isFakeValue() - Method in enum com.android.resources.ScreenRatio
 
isFakeValue() - Method in enum com.android.resources.ScreenRound
 
isFakeValue() - Method in enum com.android.resources.ScreenSize
 
isFakeValue() - Method in enum com.android.resources.TouchScreen
 
isFakeValue() - Method in enum com.android.resources.UiMode
 
isFakeValue() - Method in enum com.android.resources.WideGamutColor
 
isFileResource(String) - Method in class com.android.ide.common.rendering.api.AssetRepository
Checks if the given path points to a file resource.
isForceNoDecor() - Method in class com.android.ide.common.rendering.api.RenderParams
 
isFramework() - Method in class com.android.ide.common.rendering.api.ResourceReference
Deprecated.
all namespaces should be handled not just "android:".
isFramework() - Method in interface com.android.ide.common.rendering.api.ResourceValue
 
isFramework() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
isFramework() - Method in class com.android.resources.ResourceUrl
If true, the resource is in the android: framework.
isHorizExpand() - Method in enum com.android.ide.common.rendering.api.SessionParams.RenderingMode
 
isIdGeneratingFolderType(ResourceFolderType) - Static method in class com.android.resources.FolderTypeRelationship
Check if a folder may contain ID generating types (via android:id="@+id/xyz").
isLayoutOnly() - Method in class com.android.ide.common.rendering.api.SessionParams
 
isNullOrEmpty(String) - Static method in class com.android.resources.ResourceUrl
Returns if the resource url is @null, @empty or @undefined.
isOverflowPopupNeeded() - Method in class com.android.ide.common.rendering.api.ActionBarCallback
Returns whether to draw the overflow menu popup.
isPrivateAccessOverride() - Method in class com.android.resources.ResourceUrl
Whether this is a theme resource reference.
isQuickStepEnabled() - Method in class com.android.ide.common.rendering.api.RenderParams
 
isRecommended() - Method in enum com.android.resources.Density
Returns true if this density is relevant for app developers (e.g.
isResourceNamespacingRequired() - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns true if the module uses namespaced resources.
isRtl(String) - Method in class com.android.ide.common.rendering.api.Bridge
Returns true if the character orientation of the locale is right to left.
isRtlSupported() - Method in class com.android.ide.common.rendering.api.RenderParams
 
isSuccess() - Method in class com.android.ide.common.rendering.api.Result
Returns whether the status is successful.
isSupported() - Method in class com.android.ide.common.rendering.api.AssetRepository
Returns whether the IDE supports assets.
isTheme() - Method in class com.android.resources.ResourceUrl
Whether this is a theme resource reference.
isUserDefined() - Method in interface com.android.ide.common.rendering.api.ResourceValue
Returns true if the resource is user defined.
isUserDefined() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
isValidName(String, ResourceType) - Static method in class com.android.resources.ResourceUrl
 
isValidValueForDevice() - Method in enum com.android.resources.Density
 
isValidValueForDevice() - Method in enum com.android.resources.HighDynamicRange
 
isValidValueForDevice() - Method in enum com.android.resources.Keyboard
 
isValidValueForDevice() - Method in enum com.android.resources.KeyboardState
 
isValidValueForDevice() - Method in enum com.android.resources.LayoutDirection
 
isValidValueForDevice() - Method in enum com.android.resources.Navigation
 
isValidValueForDevice() - Method in enum com.android.resources.NavigationState
 
isValidValueForDevice() - Method in enum com.android.resources.NightMode
 
isValidValueForDevice() - Method in interface com.android.resources.ResourceEnum
Whether the value actually used on device.
isValidValueForDevice() - Method in enum com.android.resources.ScreenOrientation
 
isValidValueForDevice() - Method in enum com.android.resources.ScreenRatio
 
isValidValueForDevice() - Method in enum com.android.resources.ScreenRound
 
isValidValueForDevice() - Method in enum com.android.resources.ScreenSize
 
isValidValueForDevice() - Method in enum com.android.resources.TouchScreen
 
isValidValueForDevice() - Method in enum com.android.resources.UiMode
 
isValidValueForDevice() - Method in enum com.android.resources.WideGamutColor
 
isVertExpand() - Method in enum com.android.ide.common.rendering.api.SessionParams.RenderingMode
 
iterator() - Method in class com.android.ide.common.rendering.api.AdapterBinding
 
iterator() - Method in class com.android.ide.common.rendering.api.ArrayResourceValueImpl
 
iterator() - Method in class com.android.ide.common.rendering.api.DataBindingItem
 

K

Key(String, Class<T>) - Constructor for class com.android.ide.common.rendering.api.SessionParams.Key
 
Keyboard - Enum in com.android.resources
Keyboard enum.
KeyboardState - Enum in com.android.resources
Keyboard state enum.

L

LAST_CAPABILITY - Static variable in class com.android.ide.common.rendering.api.Features
All features before this map to the ones in Capability.
LAST_FEATURE - Static variable in class com.android.ide.common.rendering.api.Features
Last known feature.
LAYOUT_ONLY - Static variable in class com.android.ide.common.rendering.api.Features
Ability to ask for a layout only with no rendering through SessionParams.setLayoutOnly()
LayoutDirection - Enum in com.android.resources
Layout Direction enum.
LayoutlibCallback - Class in com.android.ide.common.rendering.api
Intermediary class implementing parts of both the old and new ProjectCallback from the LayoutLib API.
LayoutlibCallback() - Constructor for class com.android.ide.common.rendering.api.LayoutlibCallback
 
LayoutlibCallback.ViewAttribute - Enum in com.android.ide.common.rendering.api
 
LayoutLog - Class in com.android.ide.common.rendering.api
Log class for actions executed through Bridge and RenderSession.
LayoutLog() - Constructor for class com.android.ide.common.rendering.api.LayoutLog
 
loadClass(String, Class[], Object[]) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Like LayoutlibCallback.loadView(String, Class[], Object[]), but intended for loading classes that may not be custom views.
loadView(String, Class[], Object[]) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Loads a custom class with the given constructor signature and arguments.

M

MANUFACTURER_GENERIC - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
Manufacturer used by the generic devices in the device list
MANUFACTURER_GOOGLE - Static variable in class com.android.ide.common.rendering.api.HardwareConfig
Manufacturer used by the Nexus devices in the device list
match(ResourceType, ResourceFolderType) - Static method in class com.android.resources.FolderTypeRelationship
Returns true if the ResourceType and the ResourceFolderType values match.
max(ResourceVisibility, ResourceVisibility) - Static method in enum com.android.resources.ResourceVisibility
 
measure() - Method in class com.android.ide.common.rendering.api.RenderSession
Does a measure pass and returns the result.
measure(long) - Method in class com.android.ide.common.rendering.api.RenderSession
Does a measure pass and returns the result.
MergeCookie - Class in com.android.ide.common.rendering.api
Special wrapper class used in special case for ILayoutPullParser.getViewCookie().
MergeCookie(Object) - Constructor for class com.android.ide.common.rendering.api.MergeCookie
 
mExpectedClass - Variable in class com.android.ide.common.rendering.api.SessionParams.Key
 
mName - Variable in class com.android.ide.common.rendering.api.SessionParams.Key
 
mNamespaceResolver - Variable in class com.android.ide.common.rendering.api.ResourceValueImpl
 
moveChild(Object, Object, int, Map<String, String>, IAnimationListener) - Method in class com.android.ide.common.rendering.api.RenderSession
Move a new child to a different ViewGroup object.

N

name - Variable in class com.android.resources.ResourceUrl
Name of resource.
namespace - Variable in class com.android.resources.ResourceUrl
The namespace, or null if it's in the project namespace.
Navigation - Enum in com.android.resources
Navigation enum.
NAVIGATION_MODE_LIST - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
NAVIGATION_MODE_STANDARD - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
NAVIGATION_MODE_TABS - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
NavigationState - Enum in com.android.resources
Navigation state enum.
NightMode - Enum in com.android.resources
Night enum.
noncomplianceLogging - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
 

O

of(S, T) - Static method in class com.android.util.Pair
Deprecated.
Constructs a new pair of the given two objects, inferring generic types.
onNewFrame(RenderSession) - Method in interface com.android.ide.common.rendering.api.IAnimationListener
Called when a new animation frame is available for display.
openAsset(String, int) - Method in class com.android.ide.common.rendering.api.AssetRepository
 
openNonAsset(int, String, int) - Method in class com.android.ide.common.rendering.api.AssetRepository
 

P

Pair<S,T> - Class in com.android.util
Deprecated.
This is used for backward compatibility with layoutlib-api. Use com.android.utils.Pair instead
parse(String) - Static method in enum com.android.ide.common.rendering.api.AttributeFormat
Parses a pipe-separated format string to a set of formats.
parse(String) - Static method in class com.android.resources.ResourceUrl
Returns a ResourceUrl representation of the given string, or null if it's not a valid resource reference.
parse(String, boolean) - Static method in class com.android.resources.ResourceUrl
Returns a ResourceUrl representation of the given string, or null if it's not a valid resource reference.
parseAttrReference(String) - Static method in class com.android.resources.ResourceUrl
Returns a ResourceUrl representation of the given reference to an attr resources, most likely the contents of <item name="..." >.
parseStyleParentReference(String) - Static method in class com.android.resources.ResourceUrl
Returns a ResourceUrl representation of the given reference to a style's parent.
PLAY_ANIMATION - Static variable in class com.android.ide.common.rendering.api.Features
PluralsResourceValue - Interface in com.android.ide.common.rendering.api
Represents an Android plurals resource.
PluralsResourceValueImpl - Class in com.android.ide.common.rendering.api
Represents an Android plurals resource.
PluralsResourceValueImpl(ResourceNamespace, String, String, String) - Constructor for class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
PluralsResourceValueImpl(ResourceReference, String, String) - Constructor for class com.android.ide.common.rendering.api.PluralsResourceValueImpl
 
PREFERENCES_RENDERING - Static variable in class com.android.ide.common.rendering.api.Features
Ability to render preferences.
prefixToUri(String) - Method in interface com.android.ide.common.rendering.api.ResourceNamespace.Resolver
Returns the full URI of an XML namespace for a given prefix, if defined.
privateAccessOverride - Variable in class com.android.resources.ResourceUrl
The URL requests access to a private resource.

R

readResolve() - Method in class com.android.ide.common.rendering.api.ResourceNamespace
 
RECYCLER_VIEW_ADAPTER - Static variable in class com.android.ide.common.rendering.api.Features
Ability to use custom layouts for RecyclerView$Adapter.
REFERENCE_EMPTY - Static variable in class com.android.ide.common.rendering.api.RenderResources
 
REFERENCE_NULL - Static variable in class com.android.ide.common.rendering.api.RenderResources
 
REFERENCE_UNDEFINED - Static variable in class com.android.ide.common.rendering.api.RenderResources
 
REFERENCEABLE_TYPES - Static variable in enum com.android.resources.ResourceType
The set of all types of resources that can be referenced by other resources.
removeChild(Object, IAnimationListener) - Method in class com.android.ide.common.rendering.api.RenderSession
Removes a child from a ViewGroup object.
RENDER - Static variable in class com.android.ide.common.rendering.api.Features
render() - Method in class com.android.ide.common.rendering.api.RenderSession
Re-renders the layout as-is.
render(long) - Method in class com.android.ide.common.rendering.api.RenderSession
Re-renders the layout as-is, with a given timeout in case other renderings are being done.
render(long, boolean) - Method in class com.android.ide.common.rendering.api.RenderSession
Re-renders the layout as-is, with a given timeout in case other renderings are being done.
RENDER_ALL_DRAWABLE_STATES - Static variable in class com.android.ide.common.rendering.api.Features
Ability to render all states of a StateListDrawable and return all in a single call.
renderDrawable(DrawableParams) - Method in class com.android.ide.common.rendering.api.Bridge
Renders a Drawable.
RenderParams - Class in com.android.ide.common.rendering.api
Base class for rendering parameters.
RenderParams(Object, HardwareConfig, RenderResources, LayoutlibCallback, int, int, LayoutLog) - Constructor for class com.android.ide.common.rendering.api.RenderParams
 
RenderParams(RenderParams) - Constructor for class com.android.ide.common.rendering.api.RenderParams
Copy constructor.
RenderResources - Class in com.android.ide.common.rendering.api
A class containing all the resources needed to do a rendering.
RenderResources() - Constructor for class com.android.ide.common.rendering.api.RenderResources
 
RenderSession - Class in com.android.ide.common.rendering.api
An object allowing interaction with an Android layout.
RenderSession() - Constructor for class com.android.ide.common.rendering.api.RenderSession
 
replaceWith(ResourceValue) - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
Sets the value from another resource.
replaceWith(ResourceValue) - Method in class com.android.ide.common.rendering.api.StyleResourceValueImpl
 
RES_AUTO - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
 
RES_QUALIFIER_SEP - Static variable in class com.android.resources.ResourceConstants
Separator between the resource folder qualifiers.
resolve(ResourceNamespace, ResourceNamespace.Resolver) - Method in class com.android.resources.ResourceUrl
Tries to resolve this ResourceUrl into a valid ResourceReference by expanding the namespace alias (or lack thereof) based on the context in which this ResourceUrl was used.
resolveResourceId(int) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Finds the resource with a given id.
resolveResValue(ResourceValue) - Method in class com.android.ide.common.rendering.api.RenderResources
Returns the "final" ResourceValue referenced by the value of value.
ResourceConstants - Class in com.android.resources
Resource constants.
ResourceConstants() - Constructor for class com.android.resources.ResourceConstants
 
ResourceEnum - Interface in com.android.resources
An enum representing a resource qualifier value.
ResourceFolderType - Enum in com.android.resources
Enum representing a type of resource folder.
ResourceNamespace - Class in com.android.ide.common.rendering.api
Represents a namespace used by aapt when processing resources.
ResourceNamespace.Resolver - Interface in com.android.ide.common.rendering.api
Logic for looking up namespace prefixes defined in some context.
ResourceReference - Class in com.android.ide.common.rendering.api
A resource reference, contains the namespace, type and name.
ResourceReference(ResourceNamespace, ResourceType, String) - Constructor for class com.android.ide.common.rendering.api.ResourceReference
Initializes a ResourceReference.
ResourceType - Enum in com.android.resources
Enum representing a type of compiled resource.
ResourceUrl - Class in com.android.resources
A ResourceUrl represents a parsed resource url such as @string/foo or ?android:attr/bar
ResourceUrl.UrlType - Enum in com.android.resources
 
ResourceValue - Interface in com.android.ide.common.rendering.api
Represents an Android resource with a name and a string value.
ResourceValueImpl - Class in com.android.ide.common.rendering.api
Simple implementation of the ResourceValue interface.
ResourceValueImpl(ResourceNamespace, ResourceType, String, String, String) - Constructor for class com.android.ide.common.rendering.api.ResourceValueImpl
 
ResourceValueImpl(ResourceNamespace, ResourceType, String, String) - Constructor for class com.android.ide.common.rendering.api.ResourceValueImpl
 
ResourceValueImpl(ResourceReference, String, String) - Constructor for class com.android.ide.common.rendering.api.ResourceValueImpl
 
ResourceValueImpl(ResourceReference, String) - Constructor for class com.android.ide.common.rendering.api.ResourceValueImpl
 
ResourceVisibility - Enum in com.android.resources
An enum representing visibility of an android resource.
Result - Class in com.android.ide.common.rendering.api
Scene result class.
Result.Status - Enum in com.android.ide.common.rendering.api
Scene Status enum.
RTL - Static variable in class com.android.ide.common.rendering.api.Features
Ability to render RTL layouts.

S

SampleDataResourceValue - Interface in com.android.ide.common.rendering.api
A ResourceValue used to contain the value of a Sample Data source.
SampleDataResourceValueImpl - Class in com.android.ide.common.rendering.api
A ResourceValue used to contain the value of a Sample Data source.
SampleDataResourceValueImpl(ResourceReference, byte[]) - Constructor for class com.android.ide.common.rendering.api.SampleDataResourceValueImpl
 
ScreenOrientation - Enum in com.android.resources
Screen Orientation enum.
ScreenRatio - Enum in com.android.resources
Screen Ratio enum.
ScreenRound - Enum in com.android.resources
Screen Round enum.
ScreenSize - Enum in com.android.resources
Screen size enum.
SessionParams - Class in com.android.ide.common.rendering.api
Rendering parameters for a RenderSession.
SessionParams(ILayoutPullParser, SessionParams.RenderingMode, Object, HardwareConfig, RenderResources, LayoutlibCallback, int, int, LayoutLog) - Constructor for class com.android.ide.common.rendering.api.SessionParams
 
SessionParams(ILayoutPullParser, SessionParams.RenderingMode, Object, HardwareConfig, RenderResources, LayoutlibCallback, int, int, LayoutLog, int) - Constructor for class com.android.ide.common.rendering.api.SessionParams
 
SessionParams(SessionParams) - Constructor for class com.android.ide.common.rendering.api.SessionParams
 
SessionParams.Key<T> - Class in com.android.ide.common.rendering.api
The class should be in RenderParams, but is here because it was originally here and we cannot change the API without breaking backwards compatibility.
SessionParams.RenderingMode - Enum in com.android.ide.common.rendering.api
 
setActivityName(String) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setAppIcon(ResourceValue) - Method in class com.android.ide.common.rendering.api.RenderParams
Sets the application icon resource, or null if there is no icon.
setAppLabel(String) - Method in class com.android.ide.common.rendering.api.RenderParams
Sets the application label, or null if there is no label.
setAssetRepository(AssetRepository) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setChildren(List<ViewInfo>) - Method in class com.android.ide.common.rendering.api.ViewInfo
Sets the list of children ViewInfo.
setDescription(String) - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
Sets the description of the attr resource.
setElapsedFrameTimeNanos(long) - Method in class com.android.ide.common.rendering.api.RenderSession
Sets the time for which the next frame will be selected.
setExtendedInfo(int, int, int, int, int) - Method in class com.android.ide.common.rendering.api.ViewInfo
 
setExtendedViewInfoMode(boolean) - Method in class com.android.ide.common.rendering.api.SessionParams
 
setFlag(SessionParams.Key<T>, T) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setForceNoDecor() - Method in class com.android.ide.common.rendering.api.RenderParams
 
setFormats(Collection<AttributeFormat>) - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
Sets the formats allowed for the attribute.
setGroupName(String) - Method in class com.android.ide.common.rendering.api.AttrResourceValueImpl
Sets the name of group the attr resource belongs to.
setImageFactory(IImageFactory) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setLayoutOnly() - Method in class com.android.ide.common.rendering.api.SessionParams
Deprecated.
setLocale(String) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setLogger(LayoutLog) - Method in class com.android.ide.common.rendering.api.RenderResources
 
setNamespaceResolver(ResourceNamespace.Resolver) - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
Specifies logic used to resolve namespace aliases for values that come from XML files.
setOverrideBgColor(int) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setProperty(Object, String, String) - Method in class com.android.ide.common.rendering.api.RenderSession
Sets the value of a given property on a given object.
setQuickStep(boolean) - Method in class com.android.ide.common.rendering.api.RenderParams
Enables/disables the quick step mode in the device.
setRawXmlValue(String) - Method in class com.android.ide.common.rendering.api.TextResourceValueImpl
Sets the raw XML text.
setRtlSupport(boolean) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setSystemBootTimeNanos(long) - Method in class com.android.ide.common.rendering.api.RenderSession
Sets the system boot time in nanos.
setSystemTimeNanos(long) - Method in class com.android.ide.common.rendering.api.RenderSession
Sets the current system time in nanos.
setTimeout(long) - Method in class com.android.ide.common.rendering.api.RenderParams
 
setValue(String) - Method in interface com.android.ide.common.rendering.api.ResourceValue
Sets the value of the resource.
setValue(String) - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
Sets the value of the resource.
SIMULATE_PLATFORM - Static variable in class com.android.ide.common.rendering.api.Features
Ability to simulate older Platform Versions.
since() - Method in enum com.android.resources.Density
 
since() - Method in enum com.android.resources.UiMode
 
style(ResourceNamespace, String) - Static method in class com.android.ide.common.rendering.api.ResourceReference
A shorthand for creating a ResourceType.STYLE resource reference.
styleable(ResourceNamespace, String) - Static method in class com.android.ide.common.rendering.api.ResourceReference
A shorthand for creating a ResourceType.STYLEABLE resource reference.
StyleableResourceValue - Interface in com.android.ide.common.rendering.api
A resource value representing a declare-styleable resource.
StyleableResourceValueImpl - Class in com.android.ide.common.rendering.api
A resource value representing a declare-styleable resource.
StyleableResourceValueImpl(ResourceNamespace, String, String, String) - Constructor for class com.android.ide.common.rendering.api.StyleableResourceValueImpl
 
StyleableResourceValueImpl(ResourceReference, String, String) - Constructor for class com.android.ide.common.rendering.api.StyleableResourceValueImpl
 
StyleItemResourceValue - Interface in com.android.ide.common.rendering.api
 
StyleItemResourceValueImpl - Class in com.android.ide.common.rendering.api
A straightforward implementation of the StyleItemResourceValue interface.
StyleItemResourceValueImpl(ResourceNamespace, String, String, String) - Constructor for class com.android.ide.common.rendering.api.StyleItemResourceValueImpl
 
StyleResourceValue - Interface in com.android.ide.common.rendering.api
Represents an Android style resource with a name and a list of children ResourceValue.
StyleResourceValueImpl - Class in com.android.ide.common.rendering.api
Represents an Android style resource with a name and a list of children ResourceValue.
StyleResourceValueImpl(ResourceNamespace, String, String, String) - Constructor for class com.android.ide.common.rendering.api.StyleResourceValueImpl
Creates a new StyleResourceValueImpl.
StyleResourceValueImpl(ResourceReference, String, String) - Constructor for class com.android.ide.common.rendering.api.StyleResourceValueImpl
Creates a new StyleResourceValueImpl.
supports(int) - Method in class com.android.ide.common.rendering.api.Bridge
Returns true if the layout library supports the given feature.
supports(int) - Method in class com.android.ide.common.rendering.api.LayoutlibCallback
Returns if the IDE supports the requested feature.
SYSTEM_TIME - Static variable in class com.android.ide.common.rendering.api.Features
Ability to set system time.

T

TAG_BROKEN - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for error when something really unexpected happens.
TAG_COLORFILTER - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a color filter type is used but is not supported.
TAG_DRAWFILTER - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a draw filter type is used but is not supported.
TAG_INFO - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for reporting messages that should not be logged in the render error panel, but silently logged to a more detailed log file.
TAG_MASKFILTER - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a mask filter type is used but is not supported.
TAG_MATRIX_AFFINE - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a non affine transformation matrix is used in a Java API.
TAG_MATRIX_INVERSE - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag used when a matrix cannot be inverted.
TAG_MATRIX_PREFIX - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Prefix for matrix warnings/errors.
TAG_MISSING_ASSET - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for reporting missing assets, or problem loading them.
TAG_PATHEFFECT - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a path effect type is used but is not supported.
TAG_RASTERIZER - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a rasterize type is used but is not supported.
TAG_RESOURCES_FORMAT - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for wrong format in a resource value.
TAG_RESOURCES_PREFIX - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Prefix for resource warnings/errors.
TAG_RESOURCES_READ - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for failure when reading the content of a resource file.
TAG_RESOURCES_RESOLVE - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for resource resolution failure.
TAG_RESOURCES_RESOLVE_THEME_ATTR - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for resource resolution failure, specifically for theme attributes.
TAG_RTL_NOT_ENABLED - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for reporting RTL being used with android:supportsRtl="false".
TAG_RTL_NOT_SUPPORTED - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for reporting RTL being used with API lower than 17.
TAG_SHADER - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a shader type is used but is not supported.
TAG_STRFTIME - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when an unrecognized format is found for strftime.
TAG_TEXT_RENDERING - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when something went wrong in rendering text.
TAG_UNSUPPORTED - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Tag for unsupported feature that can have a big impact on the rendering.
TAG_XFERMODE - Static variable in class com.android.ide.common.rendering.api.LayoutLog
Fidelity Tag used when a xfermode type is used but is not supported.
TextResourceValue - Interface in com.android.ide.common.rendering.api
A ResourceValue intended for text nodes where we need access to the raw XML text.
TextResourceValueImpl - Class in com.android.ide.common.rendering.api
A ResourceValue intended for text nodes where we need access to the raw XML text.
TextResourceValueImpl(ResourceNamespace, String, String, String, String) - Constructor for class com.android.ide.common.rendering.api.TextResourceValueImpl
 
TextResourceValueImpl(ResourceReference, String, String, String) - Constructor for class com.android.ide.common.rendering.api.TextResourceValueImpl
 
THEME_PREVIEW_NAVIGATION_BAR - Static variable in class com.android.ide.common.rendering.api.Features
Ability to use a layout specific to the Theme Editor Preview for the navigation bar.
TODO() - Static method in class com.android.ide.common.rendering.api.ResourceNamespace
Namespace used in code that needs to start keeping track of namespaces.
TOOLS - Static variable in class com.android.ide.common.rendering.api.ResourceNamespace
 
TOOLS_ONLY - Static variable in interface com.android.ide.common.rendering.api.ResourceNamespace.Resolver
Contains a single mapping from "tools" to the tools URI.
toString() - Method in class com.android.ide.common.rendering.api.DensityBasedResourceValueImpl
 
toString() - Method in class com.android.ide.common.rendering.api.ResourceNamespace
 
toString() - Method in class com.android.ide.common.rendering.api.ResourceReference
 
toString() - Method in class com.android.ide.common.rendering.api.ResourceValueImpl
 
toString() - Method in class com.android.ide.common.rendering.api.Result
 
toString() - Method in class com.android.ide.common.rendering.api.SessionParams.Key
 
toString() - Method in class com.android.ide.common.rendering.api.StyleItemResourceValueImpl
 
toString() - Method in class com.android.ide.common.rendering.api.ViewInfo
 
toString() - Method in enum com.android.resources.ResourceType
 
toString() - Method in class com.android.resources.ResourceUrl
 
toString() - Method in class com.android.util.Pair
Deprecated.
 
TouchScreen - Enum in com.android.resources
Touch screen enum.
type - Variable in class com.android.resources.ResourceUrl
Type of resource.

U

UiMode - Enum in com.android.resources
UI Mode enum.
UNBOUND_RENDERING - Static variable in class com.android.ide.common.rendering.api.Features
Ability to render at full size, as required by the layout, and unbound by the screen
uriToPrefix(String) - Method in interface com.android.ide.common.rendering.api.ResourceNamespace.Resolver
 
urlType - Variable in class com.android.resources.ResourceUrl
 

V

VALUE_NAV_MODE_LIST - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
VALUE_NAV_MODE_TABS - Static variable in class com.android.ide.common.rendering.api.ActionBarCallback
 
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.ActionBarCallback.HomeButtonStyle
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.AttributeFormat
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.Capability
Deprecated.
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.LayoutlibCallback.ViewAttribute
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.Result.Status
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.SessionParams.RenderingMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.ide.common.rendering.api.ViewType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.Arity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.Density
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.HighDynamicRange
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.Keyboard
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.KeyboardState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.LayoutDirection
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.Navigation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.NavigationState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.NightMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ResourceFolderType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ResourceType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ResourceUrl.UrlType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ResourceVisibility
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ScreenOrientation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ScreenRatio
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ScreenRound
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.ScreenSize
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.TouchScreen
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.UiMode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.android.resources.WideGamutColor
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.android.ide.common.rendering.api.ActionBarCallback.HomeButtonStyle
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.ide.common.rendering.api.AttributeFormat
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.ide.common.rendering.api.Capability
Deprecated.
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.ide.common.rendering.api.LayoutlibCallback.ViewAttribute
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.ide.common.rendering.api.Result.Status
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.ide.common.rendering.api.SessionParams.RenderingMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.ide.common.rendering.api.ViewType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.Arity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.Density
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.HighDynamicRange
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.Keyboard
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.KeyboardState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.LayoutDirection
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.Navigation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.NavigationState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.NightMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ResourceFolderType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ResourceType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ResourceUrl.UrlType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ResourceVisibility
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ScreenOrientation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ScreenRatio
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ScreenRound
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.ScreenSize
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.TouchScreen
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.UiMode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.android.resources.WideGamutColor
Returns an array containing the constants of this enum type, in the order they are declared.
VIEW_MANIPULATION - Static variable in class com.android.ide.common.rendering.api.Features
Ability to call
RenderSession.insertChild(Object, ILayoutPullParser, int, IAnimationListener)
RenderSession.moveChild(Object, Object, int, java.util.Map, IAnimationListener)
RenderSession.setProperty(Object, String, String)
The method that receives an animation listener can only use it if the ANIMATED_VIEW_MANIPULATION, or FULL_ANIMATED_VIEW_MANIPULATION is also supported.
ViewInfo - Class in com.android.ide.common.rendering.api
Layout information for a specific view object
ViewInfo(String, Object, int, int, int, int) - Constructor for class com.android.ide.common.rendering.api.ViewInfo
 
ViewInfo(String, Object, int, int, int, int, Object, Object) - Constructor for class com.android.ide.common.rendering.api.ViewInfo
 
ViewType - Enum in com.android.ide.common.rendering.api
Lists various types of a view.

W

warning(String, String, Object, Object) - Method in interface com.android.ide.common.rendering.api.ILayoutLog
Logs a warning.
warning(String, String, Object) - Method in class com.android.ide.common.rendering.api.LayoutLog
WideGamutColor - Enum in com.android.resources
Wide Color Gamut

X

XmlParserFactory - Interface in com.android.ide.common.rendering.api
Factory for creation of XML pull parsers.
A B C D E F G H I K L M N O P R S T U V W X 
Skip navigation links