|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Bridge
instead.
@Deprecated public interface ILayoutBridge
Entry point of the Layout Lib. Implementations of this interface provide a method to compute and render a layout.
getApiLevel()
gives the ability to know which methods are available.
Changes in API level 5:
Bridge
instead of implementing ILayoutBridge
.computeLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)
computeLayout(IXmlPullParser, Object, int, int, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)
computeLayout(IXmlPullParser, Object, int, int, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)
computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map, Map, IProjectCallback, ILayoutLog)
getApiLevel()
computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map, Map, IProjectCallback, ILayoutLog)
computeLayout(IXmlPullParser, Object, int, int, String, Map, Map, IProjectCallback, ILayoutLog)
Field Summary | |
---|---|
static int |
API_CURRENT
Deprecated. |
Method Summary | |
---|---|
void |
clearCaches(java.lang.Object projectKey)
Deprecated. Clears the resource cache for a specific project. |
ILayoutResult |
computeLayout(IXmlPullParser layoutDescription,
java.lang.Object projectKey,
int screenWidth,
int screenHeight,
boolean renderFullSize,
int density,
float xdpi,
float ydpi,
java.lang.String themeName,
boolean isProjectTheme,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources,
IProjectCallback projectCallback,
ILayoutLog logger)
Deprecated. use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) |
ILayoutResult |
computeLayout(IXmlPullParser layoutDescription,
java.lang.Object projectKey,
int screenWidth,
int screenHeight,
int density,
float xdpi,
float ydpi,
java.lang.String themeName,
boolean isProjectTheme,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources,
IProjectCallback projectCallback,
ILayoutLog logger)
Deprecated. use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) |
ILayoutResult |
computeLayout(IXmlPullParser layoutDescription,
java.lang.Object projectKey,
int screenWidth,
int screenHeight,
java.lang.String themeName,
boolean isProjectTheme,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources,
IProjectCallback projectCallback,
ILayoutLog logger)
Deprecated. use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) |
ILayoutResult |
computeLayout(IXmlPullParser layoutDescription,
java.lang.Object projectKey,
int screenWidth,
int screenHeight,
java.lang.String themeName,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources,
IProjectCallback projectCallback,
ILayoutLog logger)
Deprecated. use Bridge.createSession(com.android.ide.common.rendering.api.SessionParams) |
boolean |
dispose()
Deprecated. Prepares the layoutlib to unloaded. |
int |
getApiLevel()
Deprecated. Returns the API level of the layout library. |
boolean |
init(java.lang.String fontOsLocation,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> enumValueMap)
Deprecated. Initializes the Bridge object. |
Field Detail |
---|
static final int API_CURRENT
Method Detail |
---|
int getApiLevel()
AbstractMethodError
, then the API level
should be considered to be 1.
boolean init(java.lang.String fontOsLocation, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.Integer>> enumValueMap)
fontOsLocation
- the location of the fonts.enumValueMap
- map attrName => { map enumFlagName => Integer value }.
boolean dispose()
@Deprecated ILayoutResult computeLayout(IXmlPullParser layoutDescription, java.lang.Object projectKey, int screenWidth, int screenHeight, boolean renderFullSize, int density, float xdpi, float ydpi, java.lang.String themeName, boolean isProjectTheme, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)
Bridge.createSession(com.android.ide.common.rendering.api.SessionParams)
ILayoutResult
on which further actions can be taken.
layoutDescription
- the IXmlPullParser
letting the LayoutLib Bridge visit the
layout file.projectKey
- An Object identifying the project. This is used for the cache mechanism.screenWidth
- the screen widthscreenHeight
- the screen heightrenderFullSize
- if true, the rendering will render the full size needed by the
layout. This size is never smaller than screenWidth x screenHeight.density
- the density factor for the screen.xdpi
- the screen actual dpi in Xydpi
- the screen actual dpi in YthemeName
- The name of the theme to use.isProjectTheme
- true if the theme is a project theme, false if it is a framework theme.projectResources
- the resources of the project. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the
map contains (String, IResourceValue
) pairs where the key is the resource name,
and the value is the resource value.frameworkResources
- the framework resources. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the map
contains (String, IResourceValue
) pairs where the key is the resource name, and the
value is the resource value.projectCallback
- The IProjectCallback
object to get information from
the project.logger
- the object responsible for displaying warning/errors to the user.
ILayoutResult
object that contains the result of the layout.@Deprecated ILayoutResult computeLayout(IXmlPullParser layoutDescription, java.lang.Object projectKey, int screenWidth, int screenHeight, int density, float xdpi, float ydpi, java.lang.String themeName, boolean isProjectTheme, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)
Bridge.createSession(com.android.ide.common.rendering.api.SessionParams)
layoutDescription
- the IXmlPullParser
letting the LayoutLib Bridge visit the
layout file.projectKey
- An Object identifying the project. This is used for the cache mechanism.screenWidth
- the screen widthscreenHeight
- the screen heightdensity
- the density factor for the screen.xdpi
- the screen actual dpi in Xydpi
- the screen actual dpi in YthemeName
- The name of the theme to use.isProjectTheme
- true if the theme is a project theme, false if it is a framework theme.projectResources
- the resources of the project. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the
map contains (String, IResourceValue
) pairs where the key is the resource name,
and the value is the resource value.frameworkResources
- the framework resources. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the map
contains (String, IResourceValue
) pairs where the key is the resource name, and the
value is the resource value.projectCallback
- The IProjectCallback
object to get information from
the project.logger
- the object responsible for displaying warning/errors to the user.
ILayoutResult
object that contains the result of the layout.@Deprecated ILayoutResult computeLayout(IXmlPullParser layoutDescription, java.lang.Object projectKey, int screenWidth, int screenHeight, java.lang.String themeName, boolean isProjectTheme, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)
Bridge.createSession(com.android.ide.common.rendering.api.SessionParams)
layoutDescription
- the IXmlPullParser
letting the LayoutLib Bridge visit the
layout file.projectKey
- An Object identifying the project. This is used for the cache mechanism.screenWidth
- the screen widthscreenHeight
- the screen heightthemeName
- The name of the theme to use.isProjectTheme
- true if the theme is a project theme, false if it is a framework theme.projectResources
- the resources of the project. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the
map contains (String, IResourceValue
) pairs where the key is the resource name,
and the value is the resource value.frameworkResources
- the framework resources. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the map
contains (String, IResourceValue
) pairs where the key is the resource name, and the
value is the resource value.projectCallback
- The IProjectCallback
object to get information from
the project.logger
- the object responsible for displaying warning/errors to the user.
ILayoutResult
object that contains the result of the layout.@Deprecated ILayoutResult computeLayout(IXmlPullParser layoutDescription, java.lang.Object projectKey, int screenWidth, int screenHeight, java.lang.String themeName, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> projectResources, java.util.Map<java.lang.String,java.util.Map<java.lang.String,IResourceValue>> frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)
Bridge.createSession(com.android.ide.common.rendering.api.SessionParams)
layoutDescription
- the IXmlPullParser
letting the LayoutLib Bridge visit the
layout file.projectKey
- An Object identifying the project. This is used for the cache mechanism.screenWidth
- screenHeight
- themeName
- The name of the theme to use. In order to differentiate project and platform
themes sharing the same name, all project themes must be prepended with a '*' character.projectResources
- the resources of the project. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the
map contains (String, IResourceValue
) pairs where the key is the resource name,
and the value is the resource value.frameworkResources
- the framework resources. The map contains (String, map) pairs
where the string is the type of the resource reference used in the layout file, and the map
contains (String, IResourceValue
) pairs where the key is the resource name, and the
value is the resource value.projectCallback
- The IProjectCallback
object to get information from
the project.logger
- the object responsible for displaying warning/errors to the user.
ILayoutResult
object that contains the result of the layout.void clearCaches(java.lang.Object projectKey)
projectKey
- the key for the project.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |