Fix a setBackgroundDrawable in layoutlib.

Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9
This commit is contained in:
Xavier Ducrohet
2012-02-06 17:29:19 -08:00
parent c10cd4a6e3
commit c8a0b8e6bc

View File

@@ -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);
}
}
}