Hi All,
I have a designer script that has a scrollview take up most of the page. When the page loads with a dark theme I get a brief flash of white before the scrollview is filled.
I can add the theme colours to the scrollview in the activity code after the layout is loaded but I'd prefer to simply set the colour from the theme in the designer script. Anyone know how this could be done? Or
Outside the script I'd use something like the below to do it, obviously this doesn't work in the script
Thanks in advance for any pointers
Jon
I have a designer script that has a scrollview take up most of the page. When the page loads with a dark theme I get a brief flash of white before the scrollview is filled.
I can add the theme colours to the scrollview in the activity code after the layout is loaded but I'd prefer to simply set the colour from the theme in the designer script. Anyone know how this could be done? Or
Outside the script I'd use something like the below to do it, obviously this doesn't work in the script
B4X:
Dim objAppCompat As AppCompat
Return objAppCompat.GetThemeAttribute("colorPrimary")
Thanks in advance for any pointers
Jon