B4J Question How to set CSS sheet into a second B4XPage?

BPak

Active Member
Licensed User
Longtime User
A Stylesheet works for MainPage but how to set a stylesheet dor other pages?

B4J:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    'load the layout to Root
    Root.LoadLayout("enquiry")
       
    ' enquire - 20: Unknown member: stylesheets
   
    ' How to set Stylesheet to B4x other pages?
    Root.Stylesheets.Add(File.GetUri(File.DirAssets, "main.css"))

End Sub
 

Attachments

  • Project.zip
    10.8 KB · Views: 134
Top