chrisbanes / insetter

Insetter is a library to help apps handle WindowInsets more easily
https://chrisbanes.github.io/insetter
Apache License 2.0
1.13k stars 42 forks source link

Using android:windowTranslucentStatus causes problem with adjustResize #39

Closed KaeMs closed 4 years ago

KaeMs commented 4 years ago

I am using this library for a form which uses fullscreen mode for drawing the form behind statusBar. I am very delighted to have found this amazing library which helps in calculating the insets rather than calculating it manually, for that, I thank you.

As for the issue, forms would normally has EditTexts and mine have several. I was only using app:paddingTopSystemWindowInsets="@{true}" for the layout as I only need the top padding. But this causes problem as my Activity doesn't respect adjustResize anymore, unelss I add app:paddingBottomSystemWindowInsets="@{true}".

Is this an intended behavior? Or is it actually an issue?

chrisbanes commented 4 years ago

Yeah, this is working as intended by the Android system.

KaeMs commented 4 years ago

Can you please explain why? Im curious as I thought insets are only for the on screen statusbar and the triangle circle square navigation

chrisbanes commented 4 years ago

This isn't really the forum for explaining platform behavior. Feel free to ask this on StackOverflow and I'll try and answer there.

KaeMs commented 4 years ago

Sure, here's the link to the question in StackOverflow