Jetpack Compose Phone Screen Layout Preview

Viewed 1574

I'm new to Jetpack Compose. I created an app and as a preview I get only the views, in my case a text view.

How can I preview a screen and not an individual element?enter image description here

I want something like that:

enter image description here

I am using Android Studio 2020.3.1 Canary 8.

1 Answers

Use the annotation @Preview(showSystemUi = true).

More info about the preview annotations here.

Related