PreviewScreenSizes

  • Cmn
    @Retention(value = AnnotationRetention.BINARY)
    @Target(allowedTargets = [AnnotationTarget.ANNOTATION_CLASSAnnotationTarget.FUNCTION])
    @Preview(name = "Phone", device = "spec:width=411dp,height=891dp", showSystemUi = true)
    @Preview(name = "Phone - Landscape", device = "spec:width=411dp,height=891dp,orientation=landscape,dpi=420", showSystemUi = true)
    @Preview(name = "Unfolded Foldable", device = "spec:width=673dp,height=841dp", showSystemUi = true)
    @Preview(name = "Tablet", device = "spec:width=1280dp,height=800dp,dpi=240,orientation=portrait", showSystemUi = true)
    @Preview(name = "Tablet - Landscape", device = "spec:width=1280dp,height=800dp,dpi=240", showSystemUi = true)
    @Preview(name = "Desktop", device = "spec:width=1920dp,height=1080dp,dpi=160", showSystemUi = true)
    annotation PreviewScreenSizes

A MultiPreview annotation for displaying a @Composable method using the screen sizes of five different reference devices.

Summary

Public constructors

Cmn

Public constructors

PreviewScreenSizes

PreviewScreenSizes()