Compose Modifier

imeNestedScroll

Controls the soft keyboard as a nested scrolling on Android [R]Build.VERSION_CODES.R and later.

windowInsetsNestedScrollDemo

@OptIn(ExperimentalLayoutApi::class)
@Sampled
@Composable
fun windowInsetsNestedScrollDemo() {
    LazyColumn(
        modifier =
            Modifier.fillMaxSize() // fill the window
                .imePadding() // pad out the bottom for the IME
                .imeNestedScroll(), // scroll IME at the bottom
        reverseLayout = true, // First item is at the bottom
    ) {
        // content
        items(50) { Text("Hello World") }
    }
}
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: