How to determine if an Android app is using light mode or dark mode
To check if an Android app is using Dark Mode or Light Mode in Kotlin, use the function isSystemInDarkTheme().
A sample use of isSystemInDarkTheme() can be found in the Theme.kt file within our Open Source Repository.
isSystemInDarkTheme()
Any Questions?
We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.