Android, how to implement an amoled theme over night mode
I am making a simple app in kotlin and would like to add an additional option for night mode like this
example from Material Files appā¾
I was thinking of adding a style and applying it programmatically, But I don't know how to do it properly.
Here's my code:
MainActivity
override fun onCreate(savedInstanceState: Bundle?) {
WindowCompat.setDecorFitsSystemWindows(window, false)...