ILayoutBridgepublic interface ILayoutBridge Entry point of the Layout Lib. Implementations of this interface provide a method to compute
and render a layout.
{@link #getApiLevel()} gives the ability to know which methods are available.
Changes in API level 3:
- {@link #computeLayout(IXmlPullParser, Object, int, int, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
- deprecated {@link #computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
Changes in API level 2:
- {@link #getApiLevel()}
- {@link #computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}
- deprecated {@link #computeLayout(IXmlPullParser, Object, int, int, String, Map, Map, IProjectCallback, ILayoutLog)}
|
Fields Summary |
---|
final int | API_CURRENT |
Methods Summary |
---|
public void | clearCaches(java.lang.Object projectKey)Clears the resource cache for a specific project.
This cache contains bitmaps and nine patches that are loaded from the disk and reused
until this method is called.
The cache is not configuration dependent and should only be cleared when a
resource changes (at this time only bitmaps and 9 patches go into the cache).
| public 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 projectResources, java.util.Map frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)Computes and renders a layout
| public ILayoutResult | computeLayout(IXmlPullParser layoutDescription, java.lang.Object projectKey, int screenWidth, int screenHeight, java.lang.String themeName, boolean isProjectTheme, java.util.Map projectResources, java.util.Map frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)Computes and renders a layout
| public ILayoutResult | computeLayout(IXmlPullParser layoutDescription, java.lang.Object projectKey, int screenWidth, int screenHeight, java.lang.String themeName, java.util.Map projectResources, java.util.Map frameworkResources, IProjectCallback projectCallback, ILayoutLog logger)Computes and renders a layout
| public int | getApiLevel()Returns the API level of the layout library.
While no methods will ever be removed, some may become deprecated, and some new ones
will appear.
If calling this method throws an {@link AbstractMethodError}, then the API level
should be considered to be 1.
| public boolean | init(java.lang.String fontOsLocation, java.util.Map enumValueMap)Initializes the Bridge object.
|
|