How to set bitmap as background for linearlayout in android?
Answers
Answered by
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