Jetpack Compose equivalent for @tools:sample/* resources

Viewed 255

In View system we can use @tools:sample/* to show placeholder data.

Example:

<ImageView
        android:layout_width="match_parent"
        android:layout_height="100dp"
        tools:src="@tools:sample/backgrounds/scenic" />

Using this Android Studio will display a random sample image for us to preview.

My question is, how do we achieve this in Compose?

0 Answers
Related