


Step 2: Paste the copied code in every activity file’s onCreate Method. Step 1: Copy the Code Below //Below API 29 (While Pasting the code delete this comment)ĪtDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO) The steps that we need to follow in method two are: Note: This method is only for API Level 29 or above. Step 4: Re-build your project or Apply Changes to your app. API 29 and above (While Pasting the code delete this comment) Step 3: Copy and paste the below code in between style tags of themes.xml (night). Step 2: Double click on themes.xml (night file). After that select the themes folder and then themes.xml (night) which is number 6.Now select the values folder that is number 5.After that select the res folder that is number 4.Then select the app folder that is number 3.After that click on number 2 which is where android is selected, if you didn’t find the android then you have to click on whatever option it is, it will show a drop-down menu and then select android from it.Click on Project which is where number 1 is printed.Step 1: Open your Project then go to Project Structure which is located on the left upper side. The steps that we need to follow in method one are: Let’s Start How to Disable Dark Mode in Android Studio App, Disable Night Mode in android studio programmatically Method 1: Method 3 also works on all API levels and we use it more than method 2 because it is easy to implement.These methods will be implemented programmatically.You should know on which API level you are making your project.Method 2 is working on all APIs but we prefer it to use lower than API 29.Method 1 is working only on API level 29 or above.so let’s get started.įew things that you should know before we dive into the Main Course Method Two is for below API level 29 and Method Three can be used for all API levels.ĭisabling dark mode or disabling night mode in the android studio is a very easy task.

We have 3 methods which I’m going to explain here briefly. How to disable dark mode in the android studio app or disable night mode programmatically or disable dark mode programmatically. I will show you the complete guide in detail. In this post, we will discuss briefly disabling night mode from your app. If you are a developer and working on a project and you want to disable dark mode or night mode from your app. How to Disable Dark Mode in Android Studio App, Disable Night Mode in android studio programmatically
