material-components-android icon indicating copy to clipboard operation
material-components-android copied to clipboard

[AppBarLayout] WindowInsets are not correctly handled

Open kfaraj opened this issue 4 years ago • 3 comments

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.

kfaraj avatar Mar 10 '21 16:03 kfaraj

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

b95505017 avatar May 05 '21 23:05 b95505017

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

shahimclt avatar Nov 11 '22 10:11 shahimclt

I updated my PR to fix this issue.

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

kfaraj avatar Nov 18 '22 14:11 kfaraj