B4J Question How to control picture position ?

hookshy

Well-Known Member
Licensed User
Longtime User
How do you set the properties of a background image ?
fil
fit
center
tile
stretch

I fill a tabpage backgound image with the code below but my image is displayed as tile ...
I must set the property other than tile

B4X:
Dim page As TabPage
    page=station.Tabs.get(station.SelectedIndex)
    page.Content.Style="-fx-background-image: url('" & File.GetUri(File.DirApp, station.SelectedIndex&".png") & "');"
 
Top