summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Xavier Ducrohet <xav@android.com> 2012-02-06 17:29:19 -0800
committer Xavier Ducrohet <xav@android.com> 2012-02-06 17:29:19 -0800
commitc8a0b8e6bccc604d3670d72cab0691ab6b8302c1 (patch)
tree1694852a78b981679479120bd1b0cb2eaa47d96a
parentc10cd4a6e3021010786c1dbd69ab4e03ecb689e6 (diff)
Fix a setBackgroundDrawable in layoutlib.
Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9
-rw-r--r--tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
index cd4fbfef1fb5..1817ab5e0833 100644
--- a/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
+++ b/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java
@@ -132,7 +132,7 @@ abstract class CustomBar extends LinearLayout {
if (bitmap != null) {
BitmapDrawable drawable = new BitmapDrawable(getContext().getResources(),
bitmap);
- imageView.setBackgroundDrawable(drawable);
+ imageView.setImageDrawable(drawable);
}
}
}