Compose 从 View 系统迁移

From Views to Compose: Where can I start?

迁移基于 View 的现有应用

在团队中使用 Compose

已有一个使用 View 构建的现有应用?了解如何采用增量方式进行迁移。

1. Migration Strategy

2. Adopt Compose in new features

New Feature in a New Screen

New Feature in an Existing Screen

3. Create a module of common UI components

buttons, app bars, chips, and so on.

dialogs, cards, and so on.

4. Incrementally migrate existing features one screen at a time

Rely on UI testing to prevent regressions.

5. Fragments

Once all the contents are in Compose.

Remove Fragments and replace them with a corresponding screen level composable.

Use Navigation Compose to navigate and pass data between these screen-level composables.

相关推荐
阿杆5 小时前
文心快码 3.5S 发布!实测插件开发,Architect 模式令人惊艳
前端·后端·文心快码
文心快码BaiduComate5 小时前
我用Comate搭建「公园找搭子」神器,再也不孤单啦~
前端·后端·微信小程序
全栈技术负责人5 小时前
前端全链路质量监控体系建设与实践分享
前端·系统架构·前端框架
sorryhc6 小时前
0~1构建一个mini blot.new(无AI版本)
前端·前端框架·openai
南方者6 小时前
文心文心,其利锻心!这个古风射覆,它帅到我了!文心快码 3.5S
前端·敏捷开发·文心快码
永日456706 小时前
学习日记-CSS-day53-9.11
前端·css·学习
云枫晖6 小时前
JS核心知识-this的指向
前端·javascript
magnet6 小时前
用img标签渲染的svg VS 直接使用svg标签,有什么区别?
前端·html
ze_juejin6 小时前
createComponent的environmentInjector详解
前端