Travis Griggs
04/25/2023, 7:12 PMefemoney
04/25/2023, 7:19 PMWindowInsets.imeAnimationSource
& WindowInsets.imeAnimationTarget
efemoney
04/25/2023, 7:27 PMWindowInsets.ime
for the current value. imePadding
just takes ime
and applies it as padding.Travis Griggs
04/26/2023, 4:04 PMefemoney
04/26/2023, 4:21 PMimeAnimationSource
< imeAnimationTarget
“Is the keyboard collapsing?” -> imeAnimationSource
> imeAnimationTarget
In both cases, ime
/ abs(imeAnimationSource - imeAnimationTarget)
will give the fraction of expand or collapseTravis Griggs
04/26/2023, 4:32 PMWindowCompat.setDecorFitsSystemWindows(window, false)
I get different results in things if I turn this off or on, but it's not clear how it's affecting things to me.
The same for the manifest entry that many seem to claim is something I should do:
android:windowSoftInputMode="adjustResize"
efemoney
04/26/2023, 4:50 PMTravis Griggs
04/26/2023, 5:04 PM