makis_best Well-Known Member Licensed User Longtime User Oct 17, 2020 #1 Hello everybody. I add on manifest editor the code B4X: CreateResource(values, theme.xml, <resources> <style name="MyAppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> </style> </resources> ) so I can activate dark mode. Is possible to use one if statement so the code be activated when the device use Android 10 otherwise ignored. If yes how? Any code example? Thank you.
Hello everybody. I add on manifest editor the code B4X: CreateResource(values, theme.xml, <resources> <style name="MyAppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> </style> </resources> ) so I can activate dark mode. Is possible to use one if statement so the code be activated when the device use Android 10 otherwise ignored. If yes how? Any code example? Thank you.
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2020 #2 Check the version specific themes: https://www.b4x.com/android/forum/threads/version-safe-themes.87694/#content Upvote 0
Check the version specific themes: https://www.b4x.com/android/forum/threads/version-safe-themes.87694/#content
makis_best Well-Known Member Licensed User Longtime User Oct 18, 2020 #3 Thanks for your reply @Erel now working fine. Upvote 0