OSDN Git Service

Minor update to the layoutlib API.
authorXavier Ducrohet <xav@android.com>
Wed, 10 Nov 2010 03:02:41 +0000 (19:02 -0800)
committerXavier Ducrohet <xav@android.com>
Wed, 10 Nov 2010 03:54:11 +0000 (19:54 -0800)
layoutlib_api/src/com/android/layoutlib/api/ILayoutBridge.java
layoutlib_api/src/com/android/layoutlib/api/ILayoutScene.java

index 505e2c0..103525c 100644 (file)
@@ -74,7 +74,9 @@ public interface ILayoutBridge {
     boolean dispose();
 
     /**
-     * Computes and renders a layout
+     * Starts a layout session by inflating and rendering it. The method returns a
+     * {@link ILayoutScene} on which further actions can be taken.
+     *
      * @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.
index 94eca2f..125266e 100644 (file)
@@ -52,7 +52,7 @@ public interface ILayoutScene {
     /**
      * Returns the result for the original call to {@link ILayoutBridge#startLayout(IXmlPullParser, Object, int, int, boolean, int, float, float, String, boolean, java.util.Map, java.util.Map, IProjectCallback, ILayoutLog)}
      */
-    ILayoutResult getStatus();
+    ILayoutResult getResult();
 
     /**
      * Returns the {@link ILayoutViewInfo} object for the top level view.