https://github.com/czy1121/themedemo
Databinding+LiveData轻松实现无重启换肤
https://github.com/czy1121/themedemo
databinding kotlin livedata skin theme
Last synced: 4 days ago
JSON representation
Databinding+LiveData轻松实现无重启换肤
- Host: GitHub
- URL: https://github.com/czy1121/themedemo
- Owner: czy1121
- Created: 2022-02-06T04:03:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-06T04:28:59.000Z (over 3 years ago)
- Last Synced: 2025-04-11T20:25:19.361Z (6 months ago)
- Topics: databinding, kotlin, livedata, skin, theme
- Language: Kotlin
- Homepage:
- Size: 94.7 KB
- Stars: 34
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ThemeDemo
Databinding+LiveData轻松实现无重启换肤
- 无重启动态换肤(不需要recreate())
- 无额外依赖(Databinding+LiveData本身几乎开发必备)
- 低侵入性
- 无需制作皮肤包
- AppCompat和Material组件默认支持(少量属性需要额外支持或适配)
- 自定义View/第三方View 适配过程简单(写个绑定适配器就行了)
- 不需要使用 LayoutInflater.Factory