OSDN Git Service

Add revision number to the layoutlib.
authorXavier Ducrohet <xav@android.com>
Thu, 19 May 2011 00:11:35 +0000 (17:11 -0700)
committerXavier Ducrohet <xav@android.com>
Thu, 19 May 2011 01:02:36 +0000 (18:02 -0700)
Change-Id: I9a990c41c46ce9901a241b18aee00d1fc4c84383

layoutlib_api/src/com/android/ide/common/rendering/api/Bridge.java

index e21d039..d5a1829 100644 (file)
@@ -44,6 +44,14 @@ public abstract class Bridge {
     public abstract int getApiLevel();
 
     /**
+     * Returns the revision of the library inside a given (layoutlib) API level.
+     * The true revision number of the library is {@link #getApiLevel()}.{@link #getRevision()}
+     */
+    public int getRevision() {
+        return 0;
+    }
+
+    /**
      * Returns an {@link EnumSet} of the supported {@link Capability}.
      * @return an {@link EnumSet} with the supported capabilities.
      *