Science, asked by sheehanghosh437, 1 year ago

How to set bitmap as background for linearlayout in android?

Answers

Answered by pulkitdube
3

Use this:

Bitmap bmImg = BitmapFactory.decodeStream(is); BitmapDrawable background = new BitmapDrawable(bmImg); linearLayout.setBackgroundDrawable(background);

pulkitdube: Hope it will help you. Please mark the answer as Brainliest
Similar questions