Abubakar Ib 2021/09/07 50
The question and answer about this post on Trying to Add Night Mode Feature to my App using Aide ide have a total of 2 answer so far..
Just add this into your apps.
u can use :
Change your theme to:
Create a folder named value-night and create styles.xml file and customize your night color inside.
Your night mode reset every time you close your app. Use shared preference to store value and load your theme every time your app run..
To check status, u can use :
int mode = AppCompatDelegate.getDefaultNightMode();