标签: java android-studio switch-statement themes
我想通过我的应用程序中的开关应用深色主题(夜间模式)。我正在使用android studio,但我是新手。
“ AppCompatDelegate.setDefaultNightMode( AppCompatDelegate.MODE_NIGHT_FOLLLOW_UP);“ 此代码无效。我想知道如何添加开关以进行更改吗? 有人可以帮帮我吗?谢谢。