B4J Question [ABMaterial] how to set page background image

shashkiranr

Active Member
Licensed User
Longtime User
Hi All,

I am getting to know about ABMaterial now. I tried to set a background image for a page using

B4X:
page.SetBackgroundImage
but it is not working. I have this line in build page method and I have declared the image path and image name correctly.

Is there any other way? Let me know.

Best,
SK
 

alwaysbusy

Expert
Licensed User
Longtime User
There must be something wrong with your path or the image is missing. Also note that the path and file name are case sensitive!

Code in BuildPage():
B4X:
page.SetBackgroundImage("../images/bg.jpg")

Result:

ABMbg.png
 
Upvote 0
Top