Ishmael Member Jun 14, 2021 #1 How can I add Theme.Material.DayNight to my app? I tried Theme.MaterialComponents.DayNight and the above, and I get compilation error that the component does not exist in theme. Please help,
How can I add Theme.Material.DayNight to my app? I tried Theme.MaterialComponents.DayNight and the above, and I get compilation error that the component does not exist in theme. Please help,
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2021 #2 Best practice for Android Dark theme? Hi all, I have a question concerning the Dark theme that has been introduced with Android 10. What is the best practice to support Dark themes in B4A? How can I select an image based on the night mode flag? thanks a lot, Johannes www.b4x.com Add a reference to AppCompat and add this to the activity code: Code: #Extends: android.support.v7.app.AppCompatActivity Upvote 0
Best practice for Android Dark theme? Hi all, I have a question concerning the Dark theme that has been introduced with Android 10. What is the best practice to support Dark themes in B4A? How can I select an image based on the night mode flag? thanks a lot, Johannes www.b4x.com Add a reference to AppCompat and add this to the activity code: Code: #Extends: android.support.v7.app.AppCompatActivity