marlonlom
11/01/2026, 8:18 PMRemoteCard, or demonstrating how to build custom layouts?
I understand that this is different from migrating regular (non-remote) Wear OS composables to their remote equivalents. I'm specifically looking for examples and guidance on building custom layouts using Remote Compose.
Thanks!marlonlom
11/01/2026, 8:48 PMWearWidget and hello-widget), I found the following dimensions:
• Fullscreen: 408 × 408 px, 96 PPI, 32-bit
• Large: 609 × 378 px, 96 PPI, 32-bit
• Small: 588 × 221 px, 96 PPI, 32-bit
Are these the recommended or required dimensions?
Is there any official documentation or design guidance for preparing these images when developing Wear OS widgets?
Also, are there any specific requirements or quality checks for these preview images when publishing an app through Google Play Console?yschimke
11/01/2026, 10:10 PMyschimke
11/01/2026, 10:11 PMyschimke
11/01/2026, 10:12 PMmarlonlom
11/02/2026, 7:54 PMyschimke
11/02/2026, 8:10 PMmarlonlom
11/03/2026, 6:21 PMyschimke
11/03/2026, 8:29 PM/**
* A [PreviewParameterProvider] that provides Small-type widget configurations from the rectangular
* specification with safe padding buffers.
*
* This set of parameters is purposely designed to help Wear widget developers generate and export
* clean, rectangular screenshot preview assets for the Play Store and galleries where users can
* choose their widgets. The preview configuration utilizes a square-cornered (rectangular)
* specification and applies safe padding boundaries outside the content area to prevent clipping
* when cropped to custom OEM widget shapes.
*/
public class RectangularSmallWidgetPreviewParams :
BaseWidgetPreviewParams(RECTANGULAR_SMALL_PARAMS, WidgetPreviewConstants.RECTANGULAR_PREFIX)
which map to safe values to allow different OEM corner clipping on top of the preview image?
cs.android.com/androidx/…/WidgetPreviewParams.kt;l=244?q=f:glance%20f:wear%20…
private val RECTANGULAR_SMALL_PARAMS =
sequenceOf(
/**
* A [WearWidgetParams] calculated as a safe grid-aligned (8dp/4dp) median configuration
* with square corners to allow cropping to custom OEM shapes without clipping.
*/
WearWidgetParams(
instanceId = WidgetInstanceId(WidgetPreviewConstants.WIDGETS_NAMESPACE, 9),
containerType = ContainerInfo.CONTAINER_TYPE_SMALL,
widthDp = 192f,
heightDp = 60f,
verticalPaddingDp = 12f,
horizontalPaddingDp = 16f,
cornerRadiusDp = WidgetPreviewConstants.CORNER_RADIUS_RECTANGULAR_DP,
)
)
private val RECTANGULAR_LARGE_PARAMS =
sequenceOf(
/**
* A [WearWidgetParams] calculated as a safe grid-aligned (8dp/4dp) median configuration
* with square corners to allow cropping to custom OEM shapes without clipping.
*/
WearWidgetParams(
instanceId = WidgetInstanceId(WidgetPreviewConstants.WIDGETS_NAMESPACE, 10),
containerType = ContainerInfo.CONTAINER_TYPE_LARGE,
widthDp = 168f,
heightDp = 112f,
verticalPaddingDp = 16f,
horizontalPaddingDp = 32f,
cornerRadiusDp = WidgetPreviewConstants.CORNER_RADIUS_RECTANGULAR_DP,
)
)yschimke
11/03/2026, 8:29 PM// Generates the uncropped rectangular preview images referenced by
// <container previewImage="@drawable/..." /> in res/xml/hello_widget_info.xml.
// Providing a full rectangular asset allows the system widget picker on each
// device (Pixel Watch, Galaxy Watch, etc.) to apply its own native shape mask.
@Preview(name = "Widget Picker Preview")
@Composable
fun HelloWidgetRectangularPreview(
@PreviewParameter(RectangularSmallWidgetPreviewParams::class) params: WearWidgetParams
) {
WearWidgetPreview(HelloWidget(), params)
}chiara chiappini
11/04/2026, 11:03 AMchiara chiappini
11/04/2026, 11:04 AMmarlonlom
11/04/2026, 7:41 PMandroidTestImplementation nor testImplementationyschimke
11/04/2026, 8:03 PMyschimke
11/04/2026, 8:04 PMyschimke
11/04/2026, 8:05 PMyschimke
11/04/2026, 8:05 PMmarlonlom
11/04/2026, 8:13 PMmarlonlom
11/06/2026, 11:35 PMNote: i’ve added an image of an ui for this scenario.cc @chiara chiappini @yschimke
yschimke
11/07/2026, 12:18 AMyschimke
11/07/2026, 12:27 AMyschimke
11/07/2026, 12:28 AM// Generated from a Compose UI builder design. Do not edit by hand.
@RemoteComposable
@Composable
fun WearWidgetContent() {
RemoteMaterialTheme {
RemoteColumn(
modifier = RemoteModifier.fillMaxSize(),
verticalArrangement = RemoteArrangement.SpaceEvenly,
horizontalAlignment = RemoteAlignment.CenterHorizontally,
) {
RemoteText(
text = "106500".rs,
modifier = RemoteModifier.fillMaxWidth(),
color = Color(0xFFA8C7FA).rc,
style = RemoteMaterialTheme.typography.titleLarge,
textAlign = TextAlign.Center,
maxLines = 1,
)
RemoteRow(
modifier = RemoteModifier.fillMaxWidth().weight(1.rf),
horizontalArrangement = RemoteArrangement.SpaceEvenly,
verticalAlignment = RemoteAlignment.CenterVertically,
) {
RemoteBox(
modifier = RemoteModifier.weight(1.rf),
contentAlignment = RemoteAlignment.Center,
) {
RemoteText(
text = "−".rs,
color = Color(0xFFA8C7FA).rc,
style = RemoteMaterialTheme.typography.titleMedium,
)
}
...
RemoteBox(
modifier = RemoteModifier.weight(1.rf),
contentAlignment = RemoteAlignment.Center,
) {
RemoteText(
text = "=".rs,
color = Color(0xFFA8C7FA).rc,
style = RemoteMaterialTheme.typography.titleMedium,
)
}
RemoteBox(modifier = RemoteModifier.weight(1.rf))
}
}
}
}
class WearWidget : GlanceWearWidget() {
override suspend fun provideWidgetData(
context: Context,
params: WearWidgetParams,
): WearWidgetData {
return WearWidgetDocument(background = WearWidgetBrush.color(Color(0xFF303038).rc)) {
WearWidgetContent()
}
}
}
@Preview(name = "Rectangular Preview")
@Composable
fun WearWidgetRectangularPreview() =
WearWidgetPreview(
WearWidget(),
RectangularLargeWidgetPreviewParams().values.maxBy { it.widthDp },
)
@Preview(name = "Squircle Preview")
@Composable
fun WearWidgetSquirclePreview() =
WearWidgetPreview(
WearWidget(),
SquircleLargeWidgetPreviewParams().values.maxBy { it.widthDp },
)
@Preview(name = "Round Preview")
@Composable
fun WearWidgetRoundPreview() =
WearWidgetPreview(
WearWidget(),
RoundLargeWidgetPreviewParams().values.maxBy { it.widthDp },
)yschimke
11/07/2026, 9:34 AMmarlonlom
11/09/2026, 9:10 PMyschimke
11/09/2026, 9:12 PMyschimke
11/09/2026, 9:14 PMyschimke
11/09/2026, 9:15 PMmarlonlom
11/09/2026, 9:33 PMyschimke
11/09/2026, 9:34 PMyschimke
11/09/2026, 9:35 PM