![]() ![]() Private const val batterySaverMode = "battery" Now, to update the theme dynamically we have to use, tDefaultNightMode(/**Your Mode**/) System default (the recommended default option for Android Q).Set by Battery Saver (the recommended default option for Android P or before). ![]() We can also let user to change the theme while using the app. Note : If you want to replace the color in the app, you need to create a custom values directory, called values-night and for image resources as well we will create drawables-night. The above is the screenshot when you convert your style to Dark Mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |