material-components / material-components-android

Modular and customizable Material Design UI components for Android
Apache License 2.0
16.37k stars 3.07k forks source link

[AppBar] WindowInsets are not correctly handled #2120

Open kfaraj opened 3 years ago

kfaraj commented 3 years ago

Description: Inside a CoordinatorLayout, when using an AppBarLayout with fitsSystemWindows, the scrolling content is hidden by the keyboard (bottom inset).

Expected behavior: The scrolling content should be placed above the keyboard (bottom inset).

Source code: https://github.com/material-components/material-components-android/blob/master/testing/java/com/google/android/material/testapp/res/layout/design_appbar_toolbar_scroll_fitsystemwindows.xml (with an EditText using adjustResize)

Android API version: 33

Material Library version: 1.7.0

Device: Pixel 2

To help us triage faster, please check to make sure you are using the latest version of the library.

We also happily accept pull requests.

b95505017 commented 3 years ago

Hit this issue as well. Any chance to merge PR?

shahimclt commented 1 year ago

Has this been fixed yet? it has been a very annoying issue to deal with.

kfaraj commented 1 year ago

I updated my PR to fix this issue.

https://github.com/material-components/material-components-android/pull/2121