It's a demo for Android Night Mode.
It has three ways:
- UiModeManager.setNightMode() (UiModeManager)
- Change Theme (Can refer to MultipleTheme)
- Use NightModeHelper
Please make sure switch one way at one time. It means that you can switch to night mode, back to day mode, and then change to another way. Otherwise, it may cause something unpredictable.
For more infomation, a question in English, and an article in Chinese may help.