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.
Copy code
@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()
}
k
Kseniia Shumelchyk
03/25/2022, 8:58 PM
@Mohammad Saboorian may have thoughts, but probably on Monday