android - Android Compose 生产准备好了吗?

标签 android kotlin android-jetpack-compose

Android Compose 有很多炒作,因为它是声明式的。唯一的问题是它仍然缺少很多功能。 ConstraintLayout 是迄今为止用于增强应用程序性能的最佳布局,而 Android Compose 仍然没有 ConstraintLayout。关于是否使用Android Compose,没有多少文章做过相关论证。在我看来,Android Compose 仍有很多发展空间,尤其是它还没有被很好地记录下来。如果没有一个性能良好的应用程序的所有必需品,Android Compose Production Ready 就绪了吗?

最佳答案

更新:2021 年 8 月,稳定的 1.0.0 版本发布了 Jetpack Compose。通过大多数常规措施,Compose 已准备就绪。原始答案以其原始形式显示在下面。


Is Android Compose Production Ready?

我假设“Android Compose”是指“Jetpack Compose”。

2019 年,Google 一直将 Jetpack Compose 称为预览状态,不适合生产使用。

例如,在 the main Jetpack Compose page 上,我们有:

Note: Jetpack Compose is currently in Developer Preview. The API surface is not yet finalized, and changes are planned and expected.

Jetpack Compose Warning

关于main Jetpack Compose Tutorial page ,我们有:

Note: Jetpack Compose is currently in Developer Preview. The API surface is not yet finalized, and should not be used in production apps.

Another Jetpack Compose Warning

the Android Developer Summit keynote blog post ,我们有:

Today we are releasing the Jetpack Compose Developer Preview. All you need to do is download the latest Preview build of Android Studio. Compose is being developed completely in the open, in AOSP. The continuous feedback we receive has led to many API improvements and we want to thank you for providing feedback in our developer studies and the Kotlinlang Slack group. As we enter developer preview, we need even more feedback as we work towards bringing Jetpack Compose to beta next year and ready for use in production apps.

(强调)

Still Another Jetpack Compose Warning

因此,一年后再来看看,我们将看看 Jetpack Compose 是否已经发展到 Google 认为您应该在生产应用中使用它的程度。

关于android - Android Compose 生产准备好了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58576815/

相关文章:

android - 可组合性在无限循环中不断刷新

android - 在jetpack compose中请求关注TextField

android - 添加 Kapt 插件后 - 执行 org.jetbrains.kotlin.gradle.internal.KaptExecution 时发生故障

android - 如何在 Android 应用程序未激活/未聚焦时显示 View ?

android - 这些opencv函数是由ARM NEON加速的吗?

java - 在 Android SDK 2.5 上尝试使用 SKAnnotations(紫色针标记类型)查看 map 时偶尔会看到黑色矩形覆盖 SKMap

android - 设置中未显示自定义 Android 权限

java - Android:哪种方式调用垃圾收集器比较好?

java - 使用 kapt 时 Realm 未在 Java/Kotlin 项目中生成 RealmProxy 类

properties - 可变属性的 Kotlin 扩展函数