B4J Question background image

chicobr

New Member
Sorry, Erel. The question is about a TEXTAREA. I need to print a TextArea text but i need to put a picture as background too. (sorry for my english )
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User


Code:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
    MainForm = Form1
    MainForm.RootPane.LoadLayout("Layout1")
    MainForm.Show
    MainForm.Stylesheets.Add(File.GetUri(File.DirAssets, "style.css"))
    CSSUtils.SetStyleProperty(TextArea1, "-fx-text-fill", "white")
End Sub

Create a file named style.css with the CSS listed here: https://stackoverflow.com/a/22108079/971547

Put an ImageView behind the TextArea.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…