Hi,
I went through this below example
https://www.b4x.com/android/forum/threads/changing-the-theme-at-runtime.57277/#content
the example works just fine but there is one thing I would like to change:
the app allows to change the theme at runtime and it saves the last choice so if one choose material light for example sets them theme to material light and at next start it will keep that theme. good. my issue is that because in the example the manifest has:
regardless the theme selected in the app, the app shows a black flash before loading the light theme. of course if I set the light theme in the manifest I always get a white flash before the app is loaded.
is there a way to avoid that and keep the intial "flash" consistent with the runtime choice?
I went through this below example
https://www.b4x.com/android/forum/threads/changing-the-theme-at-runtime.57277/#content
the example works just fine but there is one thing I would like to change:
the app allows to change the theme at runtime and it saves the last choice so if one choose material light for example sets them theme to material light and at next start it will keep that theme. good. my issue is that because in the example the manifest has:
B4X:
CreateResourceFromFile(Macro, Themes.DarkTheme)
regardless the theme selected in the app, the app shows a black flash before loading the light theme. of course if I set the light theme in the manifest I always get a white flash before the app is loaded.
is there a way to avoid that and keep the intial "flash" consistent with the runtime choice?