You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 1, 2024. It is now read-only.
On Samsung devices running Android 11 there is an issue with the WindowSoftInputMode when WindowManagerFlags.LayoutNoLimits is set. After closing the keyboard the app doesn't return to it's normal state and shows a black bar at the bottom of the screen:
Steps to Reproduce
Create a new Forms project
Set the WindowManagerFlags.LayoutNoLimits in the OnCreate of the MainActivity:
The app is moved up when the keyboard is shown and moved back down when it is hidden. NOTE: this is exactly how it works on e.g. a Google Pixel 3a XL running Android 11.
Actual Behavior
There is a black bar at the bottom of the screen after the keyboard is hidden.
@rachelkang that's correct. I couldn't reproduce this on older Android versions either. So far it seems to only affect Samsung devices on Android 11.
I should also note that there is a difference in behavior between Android 10 and 11. On Android 10 the entry stays hidden behind the keyboard while on Android 11 it stays above the keyboard.
Maybe the new Android 11 APIs for IME transitions have something to do with this?
The behavior difference doesn't seem like a big problem to me but the bug on Samsung devices definitely is!
The only way to get rid of the black bar is to either focus on an entry that is always shown above the keyboard or switch between apps.
P.S. the behavior difference is the same with a native Android app but I wasn't able to reproduce the bug in a native app so that seems to be something Xamarin Forms related.
Description
On Samsung devices running Android 11 there is an issue with the
WindowSoftInputMode
whenWindowManagerFlags.LayoutNoLimits
is set. After closing the keyboard the app doesn't return to it's normal state and shows a black bar at the bottom of the screen:Steps to Reproduce
WindowManagerFlags.LayoutNoLimits
in theOnCreate
of theMainActivity
:Entry
to the bottom of theMainPage
:Entry
Expected Behavior
The app is moved up when the keyboard is shown and moved back down when it is hidden.
NOTE: this is exactly how it works on e.g. a Google Pixel 3a XL running Android 11.
Actual Behavior
There is a black bar at the bottom of the screen after the keyboard is hidden.
Basic Information
Screenshots
Reproduction Link
XFSamsungA11KeyboardBug.zip
The text was updated successfully, but these errors were encountered: