Android Question Designer Script Theming

joneden

Active Member
Licensed User
Longtime User
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 :(

B4X:
Dim objAppCompat As AppCompat
Return objAppCompat.GetThemeAttribute("colorPrimary")

Thanks in advance for any pointers

Jon
 

joneden

Active Member
Licensed User
Longtime User
Yes thats what I was doing but I am finding some issues with the height of the scrollview as it seems to lose the height of the status bar so a thin panel at the bottom is still white. I still get the issue when setting the scrollview height to 200%y and the inner panel height to 200%y.

I had been having that issue before with some scrollviews not rendering properly so back to that issue now I guess.

Thanks for the clarification.
 
Upvote 0
Top