DarkModePreferencesTutorial
A tutorial app as a guide for implementing Night/Dark Mode using ListPreference in Android.
Install / Use
/learn @neeyatlotlikar/DarkModePreferencesTutorialREADME
DarkModePreferencesTutorial
A tutorial app as a guide for implementing Night/Dark Mode using ListPreference in Android.
This tutorial blog teaches how to change the app theme using the androidx.appcompat.app.AppCompatDelegate class.
It also teaches how to use ListPreference from the androidx.preference package to create a switch in the in-app settings (activity) to allow the user to choose the setting that she/he prefers.
<a href="https://www.youtube.com/watch?v=qMNjGRy6n-E" target="_blank">Watch the app in action</a>
See the full tutorial blog post: https://dev.to/aurumtechie/implement-dark-night-mode-in-an-android-app-with-a-listpreference-toggle-2k5i
This is the Kotlin implementation of this app. For it's java version, visit: https://github.com/Aurum1611/DarkModePreferenceTutorialJava
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
