architecture-samples
architecture-samples copied to clipboard
Using edgeToEdge breaks windowSoftInputMode
When using edgeToEdge, the view size is no longer adjusting when the keyboard is visible, resulting in buttons hidden behind the keyboard.
Without edgeToEdge call in the main Activity:
With EdgeToEdge call in the main Activity.
这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
Actually, it looks like it is possible to fix that issue by adjusting the main composition padding:
@AndroidEntryPoint
class TodoActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
TodoTheme {
TodoNavGraph(Modifier.safeDrawingPadding())
}
}
}
}