diff options
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 |
commit | c8a0b8e6bccc604d3670d72cab0691ab6b8302c1 (patch) | |
tree | 1694852a78b981679479120bd1b0cb2eaa47d96a /tools | |
parent | c10cd4a6e3021010786c1dbd69ab4e03ecb689e6 (diff) | |
download | frameworks_base-c8a0b8e6bccc604d3670d72cab0691ab6b8302c1.zip frameworks_base-c8a0b8e6bccc604d3670d72cab0691ab6b8302c1.tar.gz frameworks_base-c8a0b8e6bccc604d3670d72cab0691ab6b8302c1.tar.bz2 |
Fix a setBackgroundDrawable in layoutlib.
Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9
Diffstat (limited to 'tools')
-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 cd4fbfe..1817ab5 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); } } } |