Aplikasi Mode Gelap Studio Android

YOUR ACTIVITY SHOULD extend AppCompatActivity

AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); //night
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);  //day
PizzaSolver