diff options
| author | 2012-02-06 17:29:19 -0800 | |
|---|---|---|
| committer | 2012-02-06 17:29:19 -0800 | |
| commit | c8a0b8e6bccc604d3670d72cab0691ab6b8302c1 (patch) | |
| tree | 1694852a78b981679479120bd1b0cb2eaa47d96a | |
| parent | c10cd4a6e3021010786c1dbd69ab4e03ecb689e6 (diff) | |
Fix a setBackgroundDrawable in layoutlib.
Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9
| -rw-r--r-- | tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java | 2 |
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); } } } |