Function

WindowSize

DeviceConfigurationOverrideWindowSizeSample

@Sampled
@Composable
fun DeviceConfigurationOverrideWindowSizeSample() {
    DeviceConfigurationOverride(DeviceConfigurationOverride.WindowSize(DpSize(1280.dp, 800.dp))) {
        MyScreen() // will be rendered with an apparent window size of 1280dp by 800dp without
        // clipping
    }
}
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: