1 min readJul 7, 2020
Hi Vadim —
You can query for the inset size by grabbing the inset by its type and then querying top, bottom, left, right. For keyboard you would be looking at bottom like such:
insets.getInsets(WindowInsets.Type.ime()).bottom
This is often used in the WindowInsetsAnimation.Callback
so that you can grab the inset size as its changing and animate your view appropriately.