30

谷歌最强Android UI工具包霸榜Github,这份上手指南了解一下

 4 years ago
source link: http://os.51cto.com/art/202009/625234.htm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

2019年,谷歌在I/O大会上公开开源了一个非捆绑工具包——Jetpack Compose,这是一个用于构建原生Android UI的现代化工具包。仅通过少量代码就能完成布局,且能够直接使用Kotlin来进行编写。

825c0ef810663a53aaff211e10a4fbcd.jpg-wh_651x-s_1073648718.jpg

Jetpack Compose工具包是围绕着composable函数来构建的。这些函数可以让你通过描述应用的形状和所依赖的数据来定义应用的UI,而不需要关注UI具体的构建过程。

最近Github上有一个项目已经霸榜第一很多天了,这个项目包含一组单独的Android Studio项目,能够帮助你更好的学习Compose。

EjUvqa7.jpg!mobile

目前,compose-samples已经在Github上标星2.7K,累计分支 400 个(Github地址:https://github.com/android/compose-samples)。

如果你也想尝试这些示例应用程序,使用最新的Canary版本的Android Studio 4.2。下面还是一起来看看有哪些示例吧:

Jetnews

e6ZB32M.jpg!mobile

这是一个博客文章查看器,复杂程度中等。

Jetchat

2URbyeZ.jpg!mobile

这是一个示例聊天应用程序,复杂程度简单,简单的主题设计、UI测试、动画等。

Jetsurvey

R7RZFrA.jpg!mobile

这是调查应用程序,在Compose中展示了文本输入,验证和UI状态管理,复杂程度简单。

Jetsnack

b5c6d57721e5bf2febd16b987cc8c35c.jpg

这是一个使用Compose构建的小吃订购应用程序。复杂程度中等,涉及系统设计,布局定制等。

Jetcaster

yMvuA3.jpg!mobile

这是一个播客应用程序,具有功能齐全的Redux风格的体系结构,并展示了动态主题。

rA7Jvi.jpg!mobile

除了以上这些应用实例之外,还有Crane(旅行应用程序)、Rally(财务应用程序)、Owl等具有特色的应用程序,如果你对Compose感兴趣,这个项目一定要去看看。


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK