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.

相关推荐
喝拿铁写前端2 小时前
别再让 AI 直接写页面了:一种更稳的中后台开发方式
前端·人工智能
A向前奔跑3 小时前
前端实现实现视频播放的方案和面试问题
前端·音视频
十一.3663 小时前
131-133 定时器的应用
前端·javascript·html
xhxxx4 小时前
你的 AI 为什么总答非所问?缺的不是智商,是“记忆系统”
前端·langchain·llm
3824278275 小时前
python:输出JSON
前端·python·json
2503_928411565 小时前
12.22 wxml语法
开发语言·前端·javascript
光影少年5 小时前
Vue2 Diff和Vue 3 Diff实现及底层原理
前端·javascript·vue.js
傻啦嘿哟5 小时前
隧道代理“请求监控”实战:动态调整采集策略的完整指南
前端·javascript·vue.js
JIngJaneIL5 小时前
基于java + vue个人博客系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot