简体   繁体   English

Jetpack 中是否有像 flutter 这样的热重载?

[英]is there hot reload in Jetpack like flutter?

any idea to make android studio Jetpack compose auto refresh like Hot reload in Flutter it's annoying?有什么想法让 android studio Jetpack compose 像 Flutter 中的热重载一样自动刷新,这很烦人? Is there Auto-refresh in Jetpack Compose viewer? Jetpack Compose 查看器中是否有自动刷新功能?

When Android Studio Electric Eel becomes stable, Live Edit is enabled by default that acts as Hot Reload.当 Android Studio Electric Eel 变得稳定时,默认启用实时编辑作为热重载。 Right now its still on preview . 现在它还在预览中。

Right now, compose does not support Hot reloads .目前,compose支持Hot reloads But Literals values can be updated directly .但是Literals 值可以直接更新

Some supported types.一些支持的类型。

Int诠释

String细绳

Color颜色

Dp DP

Boolean Boolean

在此处输入图像描述

You can view constant literals that trigger real-time updates without the compilation step by enabling these highlighted values .您可以通过启用这些突出显示的值来查看触发实时更新的常量文字,而无需编译步骤。

在此处输入图像描述

Reference 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM