Clinton Teegarden
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.

--

--

Clinton Teegarden
Clinton Teegarden

Written by Clinton Teegarden

Mobile Lead & Architect @ CapTech. I specialize in delivering products for Fortune 500 clients in Mobile, Services and end to end solutions.

No responses yet