Dark Mode on Android
In this example, I am using Material Design. But you can also use the Theme.AppCompat.DayNight. This is a simple way to adapt a dark mode, if you wants more, check for GitHub or Internet. Change the style First you should use the DayNight style by Google. <style name="AppTheme" parent="Theme.MaterialComponents.DayNight"> If you want to let things easily, that’s enough. But you can also provide more adaptation. Adapt colors Make a new folder at project/app/src/main/res/values-night then make a new resource file colors.xml. Edit the color you want to set on dark mode. ...