In this video, let’s build an example that exchanges system theme (Light, Dark) with button in one click.
kotlin version: 1.5.20
Keep subtitle on because maybe I’ll remind you some important hint in the subtitles, thanks~
Timeline:
0:29 Example introduce
0:43 Project setting review
1:38 Create color-night.xml file
3:44 Finish activity and XML of activity
8:05 test
[ - If you need Source Code, you can contact me, it's free - ]
Facebook: / djseokho
Instagram: / coding_with_cat
Email: [email protected]
Facebook group: https://www.facebook.com/groups/46272...
[ - Subscribe 👍 - ]
Subscribe: / @codingwithcat
[ - Please Support me and Hit the like button🧡 - ]
Buy me a coffee: https://www.paypal.com/paypalme/djseokho
project environment:
IDE: Android Studio 4.2.1
Kotlin version 1.5.10
CN ===============================================
我这里来做一个一键把画面切换成暗黑模式主题和白天模式主题的app吧
[ - 如果您需要免费获取源代码,请联系我. - ]
Facebook: / djseokho
Instagram: / coding_with_cat
Email: [email protected]
Facebook group: https://www.facebook.com/groups/46272...
[ - 请记得订阅 👍 - ]
Subscribe: / @codingwithcat
[ - 点击顶一下来支持我🧡 - ]
如果您愿意支持我,打赏一杯咖啡,感谢: https://www.paypal.com/paypalme/djseokho
KR ===============================================
이번 동영상을 안드로이드에서 다크 모드, 라이트 모드 원 클릭으로 변경할 수 있는 예제 앱 제작합니다.
[ - 소스코드 필요하시면 연락하세요. 무료입니다. - ]
Facebook: / djseokho
Instagram: / coding_with_cat
Email: [email protected]
Facebook group: https://www.facebook.com/groups/46272...
[ - 구독하세요 👍 - ]
Subscribe: / @codingwithcat
[ - 좋아요 버튼 부탁합니다🧡 - ]
원하시면 커피한잔 감사하겠습니다: https://www.paypal.com/paypalme/djseokho
#kotlintutorial #androidtutorial #codingwithcat #android #architecture #stepbystep #livedata #guide #tutorial #androidstudio #background #安卓开发教程 #kotlin开发教程 #androidtutorial #materialdesign #materialdesigntutorial #darkmode #lightmode #systemtheme