y

    Yingding Wang

    6 months ago
    I got some
    Rendering sandbox error
    to use the compose preview with ui-tooling:1.2.0-alpha06 in Bumblebee. Really like
    Devices.WEAR_OS_SQUARE
    and
    Devices.WEAR_OS_SMALL_ROUND
    from compose 1.2.0 in Preview By turning off the rendering sandbox seems to solve the issue, is it recommended to do so? My apology if it is an off-topic question.
    @Preview(
        apiLevel = WEAR_PREVIEW_API_LEVEL,
        uiMode = Configuration.UI_MODE_TYPE_WATCH,
        backgroundColor = WEAR_PREVIEW_BACKGROUND_COLOR_BLACK,
        showBackground = WEAR_PREVIEW_SHOW_BACKGROUND,
        showSystemUi = false, // the android system bar on top
        device = Devices.WEAR_OS_SQUARE
    )
    @Preview(
        apiLevel = WEAR_PREVIEW_API_LEVEL,
        uiMode = Configuration.UI_MODE_TYPE_WATCH,
        device = Devices.WEAR_OS_SMALL_ROUND
    )
    @Composable
    fun WearAppPreview() {
        WearApp()
    }
    Kseniia Shumelchyk

    Kseniia Shumelchyk

    6 months ago
    @Mohammad Saboorian may have thoughts, but probably on Monday