Reputation: 123
I'm trying to set a Bitmap Drawable as the background like this, root.setBackground(bitmapDrawable);
, I've set its bounds to be 1080 wide by 300 high, but it keeps stretching to fit the entire background. Is there any way to avoid this? This is how i created the BitmapDrawable
BitmapDrawable bitmapDrawable= new BitmapDrawable(getResources(), bmp1);
Upvotes: 2
Views: 225