B4J Question [ABMaterial] Using an Image as page or container background

Cableguy

Expert
Licensed User
Longtime User
Hi, ABM Gurus

Is it possible, and if so How, to use an image (png with transparency) as a page background, or as a container background?
 

Cableguy

Expert
Licensed User
Longtime User
I am running v3.0, and i didn't find it...
I will try to find that later
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I must have zapped it...
How about for a container, that is what I'm more interested on
 
Upvote 0

mindful

Active Member
Licensed User
How about for a container, that is what I'm more interested on
Currently(v3.00) there is no method for doing that for a container, but you can use page.InjectCSS method. (I placed it in ConnectPage)

B4X:
page.InjectCSS($"#your-container-id {
                    background: url("/your-app-name/images/your-image-name.png") no-repeat center !important;
                    }"$)
more info about background css : https://www.w3schools.com/css/css_background.asp
 
Upvote 0
Top