Compose 官方文档 Jetpack Compose | Android Developers
Compose 中文手册 概述 - Jetpack Compose
本系列是我学习compose过程中,对官方文档的翻译和解读,以及实验性的Demo工程。主要参考官方文档和中文手册
本文翻译内容: Why Compose | Jetpack Compose | Android Developers
环境配置
请参考中文手册教程搭建环境,为demo准备。在开始之前 - Jetpack Compose
注意kotlin版本和compose版本的匹配关系,compose第一个稳定版于2021年发布,api随着版本迭代可能会有较大调整
Compose 介绍
官方文档用 Why Adopt Compose
作为引言,不知道此刻的读者是为了什么接触/学习/使用Compose,本人很诚实地回答是:"内卷"。google 既然大力推出,业界又逐渐接受,这么多人开始学,那我也得开始啊,至于性能更好,设计更优雅什么的,和我一个打工人有啥关系
牢骚两句回归正题,既来之则安之,让我们好好研究一下compose到底好在哪
Why Adopt Compose
Jetpack Compose is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android bringing your apps to life with less code, powerful tools, and intuitive Kotlin APIs. It makes building Android UI faster and easier. While creating Compose we worked with different partners who experienced all of these benefits first hand and shared some of their takeaways with us.
Compose是安卓为构建原生UI设计的现代工具库。它通过更少的代码,更强大的工具,和更符合直觉的api,能简化Android中开发UI的流程。它是构建UI变得更快更容易。在开发Compose过程中,我(Google)让一些合作伙伴(如Twitter)体验了下,他们说体验很好,并狠狠地夸了我们