Slide 11
Slide 11 text
「WindowInsetsを考慮してViewをズラす」の例
11
・https://developer.android.com/codelabs/edge-to-edge#2
・https://github.com/android/socialite/pull/77
Scaffold(
...
) { innerPadding ->
Column {
val layoutDirection = LocalLayoutDirection.current
...
InputBar(
...
- contentPadding = PaddingValues(0.dp),
‘
+ contentPadding = innerPadding.copy(layoutDirection, top = 0.dp),
‘
...
)
}
}
...
BEFORE
AFTER
Scaffoldの場合、ここに WindowInsetsの情報が含まれる