Fix a setBackgroundDrawable in layoutlib.
Change-Id: Id5f3ec8cc6863fa5929743ef4014c331633efce9
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user