Based on testing I've done, I think I already know the answer to this - but just in case I've missed something...
I have an image with a transparent background that I want to put in an ImageView & then be able to set different background colors of the view. If I was doing it in Java, apparently the XML for the view would look like this:
Any ideas?
- Colin.
I have an image with a transparent background that I want to put in an ImageView & then be able to set different background colors of the view. If I was doing it in Java, apparently the XML for the view would look like this:
I can't seem to find a way to do this in B4A. I've tried loading the bitmap to ImageView.Bitmap & then setting the ImageView.Background with a ColorDrawable (also tried the other way around), setting a background image with ImageView.SetBackGroundImage, etc... but I can't get the ImageView to show both the image & the background color at the same time - I always end up with one or the other.<ImageView
layout_width="match_parent"
layout_height="match_parent"
src="@drawable/myImage"
background="@Color/myBgColor"/>
Any ideas?
- Colin.
Last edited: