Hello fellow developers. I’ve developed and Android App using Android Studio, but I only took into account the layout themes for light mode. Here’s how it looks: So now, when I switch my phone to dark mode, this happens: How can I change the colors that are being displayed in dark mode? Answer In res/values/colors There are two colors colors.xml
Tag: android-darkmode
How to save dark mode state in android when the app is completely closed
I have a little problem. When I turn on dark mode in my app and then close my app completely in android, when I reopen it, it returns to light mode. I use AppCompatDelegate to do this. I have a settings fragment with a switch to turn on or off dark mode and it works well. I have a shared