J joneden Active Member Licensed User Longtime User Nov 10, 2015 #1 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 Code: Dim objAppCompat As AppCompat Return objAppCompat.GetThemeAttribute("colorPrimary") Thanks in advance for any pointers Jon
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 Code: Dim objAppCompat As AppCompat Return objAppCompat.GetThemeAttribute("colorPrimary") Thanks in advance for any pointers Jon
Erel B4X founder Staff member Licensed User Longtime User Nov 11, 2015 #2 It is not possible. However you can set the color of the ScrollView before you fill it, in your code. Upvote 0
It is not possible. However you can set the color of the ScrollView before you fill it, in your code.
J joneden Active Member Licensed User Longtime User Nov 11, 2015 #3 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
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.