summaryrefslogtreecommitdiff
path: root/tools/layoutlib/create
diff options
context:
space:
mode:
author Xavier Ducrohet <xav@android.com> 2010-10-29 16:01:40 -0700
committer Xavier Ducrohet <xav@android.com> 2010-10-29 16:01:40 -0700
commit5de11a18e9151e6bc9b3e81cf31fc43dc63dffbf (patch)
tree3d956f7bfa6cc38ed3dd4a4a2e48c62c30fe7afe /tools/layoutlib/create
parent5164246d7e47b9c995ca1e1587f3056eb777f60b (diff)
Implement the layoutlib Bitmap through a native delegate.
This does not implement all the native methods of the android.graphics.Bitmap class, only what's needed to draw an ImageView object. The rest will be implemented after Canvas and Paint have been moved to the native delegate. Change-Id: Ia0c3b2cafa03871c298deaef5817a25ac1c35521
Diffstat (limited to 'tools/layoutlib/create')
-rw-r--r--tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java b/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java
index f6d11fe75060..0ecb4740f16d 100644
--- a/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java
+++ b/tools/layoutlib/create/src/com/android/tools/layoutlib/create/CreateInfo.java
@@ -103,6 +103,7 @@ public final class CreateInfo implements ICreateInfo {
* The list of classes on which to delegate all native methods.
*/
private final static String[] DELEGATE_CLASS_NATIVES = new String[] {
+ "android.graphics.Bitmap",
"android.graphics.Matrix",
"android.graphics.Typeface",
};
@@ -123,7 +124,6 @@ public final class CreateInfo implements ICreateInfo {
*/
private final static String[] RENAMED_CLASSES =
new String[] {
- "android.graphics.Bitmap", "android.graphics._Original_Bitmap",
"android.graphics.BitmapFactory", "android.graphics._Original_BitmapFactory",
"android.graphics.BitmapShader", "android.graphics._Original_BitmapShader",
"android.graphics.Canvas", "android.graphics._Original_Canvas",