PhongBM
PhongBM

Reputation: 938

Jetpack Compose - The preview does not render in real-time

I use Compose with AS Arctic Fox v2020.3.1. When I update the code, the preview does not render in real-time. AS show the message "The preview is out of date" and I must click "Build & Refresh". I'd like it to render UI in real-time, similar to XML Design.

How do it?

Thanks in advance.

enter image description here

Upvotes: 4

Views: 2676

Answers (1)

AFAIK you can't. You're able to edit string values and certain others, such as padding dp's but when adding or removing elements, you have to rebuild to view the updated layout.

Upvotes: 1

Related Questions