From c8a0b8e6bccc604d3670d72cab0691ab6b8302c1 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Mon, 6 Feb 2012 17:29:19 -0800 Subject: [PATCH] Fix a setBackgroundDrawable in layoutlib. Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9 --- .../bridge/src/com/android/layoutlib/bridge/bars/CustomBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 cd4fbfef1fb5d..1817ab5e08337 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); } } }