Thomas Dougherty
09/15/2022, 3:55 AMThomas Dougherty
09/15/2022, 3:56 AMThomas Dougherty
09/15/2022, 4:22 AMAlex Vanyo
09/15/2022, 5:20 PMBottomNavigationView
outside of Compose, and then inside of a ComposeView
you’re using imePadding
.
The ComposeView
doesn’t directly know that the BottomNavigationView
exists, or how much space it is taking up. Therefore you’re getting a “double padding” for the size of the BottomNavigationView
being applied.
The APIs I would recommend are the ones to “consume” the window insets, so that the ComposeView
applies less of the IME as padding. There are ones inside of Compose
(Modifier.consumedWindowInsets
) as well as with the WindowInsetsCompat
ones.Thomas Dougherty
09/16/2022, 9:03 PM