xxxxxxxxxx
YOUR ACTIVITY SHOULD extend AppCompatActivity
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); //night
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); //day
xxxxxxxxxx
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>
</style>
xxxxxxxxxx
// For MAc
Click MENU Android Studio > Settings ( Preferences ) > Apparances & Behavors > THeme Select Dracula click Apply and ok