
After step 1 you shoule have something like below: Settings, now under IDE settings click on appearance and select the theme of your choice from the dropdown.Append the following code inside your tag in the styles.xml file: false.If you decided to fully disable force dark mode you should follow this approach: You can then turn it on or off, or make the app dependent on your phone's system-wide theme.2 How do you disable night mode in my application even if night mode is enable in Android 9.0 PIE )? Tap the hamburger menu in the top-right (Android) or bottom-right (iOS) corner, scroll down and select Settings & Privacy > Dark Mode. Using a variety of different examples, we have learned how to solve the How To Disable Dark Mode Of Application In Android Studio. YOUR ACTIVITY SHOULD extend AppCompatActivityĪtDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES) //nightĪtDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) //day

The solution to the same problem, How To Disable Dark Mode Of Application In Android Studio, can also be found in a different method, which will be discussed further down with some code examples.

In the night\themes.xml file paste the following line under the
