-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The User Interface moved up when the keyboard appears in Android platform #20548
Comments
Recognized that the different (redurced height) screen size is being returned by Page.SizeChanged in my project. |
This is a regression. This used to work, not anymore. Huge showstopper basically. We will not be able to hack this because the keyboard is part of the OS, it basically reduced the window size of the app which should be "propagated" downwards like WPF always does. This bug (WPF must be told to resize if kbd pops up or down) might be from the android API as this is one of WPFs core strengths which I have never seen violated before. WPF always reacts to main window size changes immediately! You cannot use the keyboard in Maui anymore at the moment because of this. Nobody seems to be using the platform. Right now, the keyboard pushes the entire app screen out of bounds at the top. Even if we got a keyboard event we would not know how much to manually reduce our top with to bring the app back into view. This needs to be fixed by Maui team.
|
Verified this on VS 17.10.0 Preview 2.0(8.0.7). Repro on Android 14.0-API34, not repro on iOS 17.2 with below Project: |
Is there any progress on this issue? This is a critical bug. |
To resolve this issue, you need to add the following command to your MainActivity.cs file. This ensures that when the keyboard is opened, the screen layout is adjusted to make the Entry visible without pushing other UI elements out of place. protected override void OnCreate(Bundle savedInstanceState) |
Description
I have created a simple .NET MAUI sample, and in the
ContentPage
I have added aStackLayout
with threeBoxView
(s) and anEntry
control as its child. Deployed in Android, when clicking theEntry
the keyboard pops up and the UI (Home bar along with the elements) moved upward. This scenario worked fine in iOS platform only the elements in theContentPage
moved upward.Steps to Reproduce
BoxView
(s) and anEntry
control as its child.Entry
control.MAUI-Android-behavior.mp4
The issue reproducible sample is attached below.
ToolbarDemo.zip
Link to public reproduction project repository
No response
Version with bug
Unknown/Other
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: