简体   繁体   中英

Is there a way to set auto refresh the jetpack compose preview?

I just started to use the Jetpack compose toolkit. I added the @Preview and a set showBackground = true, showSystemUi = true as parameters and it works really good. But every time i add or change something it doesn't auto refresh by itself, so i have to do it manually.

as Raul text, padding and some other things update automatically, but **

make sure you have live edit of literals on

**.

But soon Live edit of composables, not just literals (Int, String, Dp...) will be available, : read more here

一些组件在 1.1.1 版本上自动刷新

对于文本等静态资源,UI 会自动更新颜色,就像在运行的应用程序上一样,但对于结构组件,您需要重新构建项目,并且更改也会自动应用到预览中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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