Bruno A. Klein
Bruno A. Klein

Reputation: 320

Device's keyboard is above the input

I have a Xamarin application using HybridWebView. Inside of it I have an input at the end of the screen and when I click on it the device's keyboard is above the input, so I cannot see what I am typing. I figured out how to add height on the screen when the input is clicked, but I believe this is not the most appropriate way to do it.

There is a better way to do it? Thanks

Upvotes: 1

Views: 578

Answers (3)

Bruno A. Klein
Bruno A. Klein

Reputation: 320

I found a solution, just put this in the App.cs constructor:

Xamarin.Forms.PlatformConfiguration.AndroidSpecific.Application.SetWindowSoftInputModeAdjust(this, Xamarin.Forms.PlatformConfiguration.AndroidSpecific.WindowSoftInputModeAdjust.Resize);

Reference: https://bugzilla.xamarin.com/show_bug.cgi?id=50792

Upvotes: 1

iknunes
iknunes

Reputation: 13

Try to use, in your MainActivity's Activity attributes:

WindowSoftInputMode = SoftInput.AdjustResize 

or

WindowSoftInputMode = SoftInput.AdjustPan

Upvotes: 0

Mahmut Bedir
Mahmut Bedir

Reputation: 494

Try thats, I do not remember exactly. If I understand the problem rightly, someone will work for them. Please try and write results.

android:windowSoftInputMode="adjustPan"

or

android:windowSoftInputMode="adjustNothing"

Upvotes: 1

Related Questions