diff options
author | Xavier Ducrohet <xav@android.com> | 2010-11-10 18:04:31 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2010-11-10 18:04:31 -0800 |
commit | 6c88ff3409763cac0d757bbcdf8f09d2bb5fda9e (patch) | |
tree | 7dddb2660a05b1cb5b29f4c901a76239d51d133b /layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java | |
parent | 6228a860f39b6980de2da62967c24580f8fb3046 (diff) | |
parent | 68fa17272bfbb398af684387fdaba93e62d1b283 (diff) | |
download | sdk-6c88ff3409763cac0d757bbcdf8f09d2bb5fda9e.zip sdk-6c88ff3409763cac0d757bbcdf8f09d2bb5fda9e.tar.gz sdk-6c88ff3409763cac0d757bbcdf8f09d2bb5fda9e.tar.bz2 |
Merge "Improvements to the new Layoutlib API."
Diffstat (limited to 'layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java')
-rw-r--r-- | layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java | 44 |
1 files changed, 4 insertions, 40 deletions
diff --git a/layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java b/layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java index 103525c..70d099d 100644 --- a/layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java +++ b/layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java @@ -26,8 +26,7 @@ import java.util.Map; * <p/> * Changes in API level 5: * <ul> - * <li>new render method: {@link #startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)} - * <li>deprecated {@link #computeLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}</li> + * <li>Bridge should extend {@link LayoutBridge} instead of implementing {@link ILayoutBridge}.</li> * </ul> * Changes in API level 4: * <ul> @@ -45,10 +44,12 @@ import java.util.Map; * <li>new render method: {@link #computeLayout(IXmlPullParser, Object, int, int, String, boolean, Map, Map, IProjectCallback, ILayoutLog)}</li> * <li>deprecated {@link #computeLayout(IXmlPullParser, Object, int, int, String, Map, Map, IProjectCallback, ILayoutLog)}</li> * </ul> + * @Deprecated Extend {@link LayoutBridge} instead. */ +@Deprecated public interface ILayoutBridge { - final int API_CURRENT = 5; + final int API_CURRENT = 4; /** * Returns the API level of the layout library. @@ -100,43 +101,6 @@ public interface ILayoutBridge { * @param projectCallback The {@link IProjectCallback} object to get information from * the project. * @param logger the object responsible for displaying warning/errors to the user. - * @return a new {@link ILayoutScene} object that contains the result of the layout. - * @since 5 - */ - ILayoutScene startLayout(IXmlPullParser layoutDescription, - Object projectKey, - int screenWidth, int screenHeight, boolean renderFullSize, - int density, float xdpi, float ydpi, - String themeName, boolean isProjectTheme, - Map<String, Map<String, IResourceValue>> projectResources, - Map<String, Map<String, IResourceValue>> frameworkResources, - IProjectCallback projectCallback, ILayoutLog logger); - - /** - * Computes and renders a layout - * @param layoutDescription the {@link IXmlPullParser} letting the LayoutLib Bridge visit the - * layout file. - * @param projectKey An Object identifying the project. This is used for the cache mechanism. - * @param screenWidth the screen width - * @param screenHeight the screen height - * @param renderFullSize if true, the rendering will render the full size needed by the - * layout. This size is never smaller than <var>screenWidth</var> x <var>screenHeight</var>. - * @param density the density factor for the screen. - * @param xdpi the screen actual dpi in X - * @param ydpi the screen actual dpi in Y - * @param themeName The name of the theme to use. - * @param isProjectTheme true if the theme is a project theme, false if it is a framework theme. - * @param 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, {@link IResourceValue}) pairs where the key is the resource name, - * and the value is the resource value. - * @param 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, {@link IResourceValue}) pairs where the key is the resource name, and the - * value is the resource value. - * @param projectCallback The {@link IProjectCallback} object to get information from - * the project. - * @param logger the object responsible for displaying warning/errors to the user. * @return a new {@link ILayoutResult} object that contains the result of the layout. * @deprecated use {@link #startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, Map, Map, IProjectCallback, ILayoutLog)} * @since 4 |