Implementing Dark (Night) Mode in Android Studio



0
9692

Video shows you how to implement Dark or Night mode in your Android app. On Android P and below the night mode is activated by an option in developer settings or by enabling the battery saver on the device. On the upcomming Q version the night mode will be system wide setting and will be enabled by a simple toggle in the settings. This video will help you prepare your app for the new version of the operation system. All resources for the night theme are placed in correct folder with "-night" at the end. Like I have "values-night" folder for the night colors. For example if you want different image for the dark theme put it in "drawable-night" and the normal image is in "drawable" folder with the same name. If you learn something press the Like button! If you want to see more tutorials like this press the Subscribe button! It's FREE! If you want to buy me a coffee use my PayPal: yo_asakura@abv.bg

Published by: Tihomir Radev Published at: 4 years ago Category: آموزشی