Open hartez opened 5 years ago
Just commenting my findings about this issue.
I noticed that what when I set Control.ImeOptions to ImeFlags.NoFullscreen, Entry work correctly in "NoFullscreen" mode. I tried that even though Android.Views.InputMethods.ImeAction enum does not value NoFullscreen defined.
I'm using Xamarin.Forms v4.8.0.1687. Code: Control.ImeOptions = (Android.Views.InputMethods.ImeAction)ImeFlags.NoFullscreen;
I get inconsistent results using either NoFullscreen or NoExtractUI, or combined. On one page it works, on another it doesn't. Xamarin.Forms 5.0.0.1931.
EDIT: Looking at differences between my two pages, NoFullscreen/NoExtractUI doesnt work if Entry.ReturnType is ReturnType.Done, that seems to force the fullscreen mode. Setting ReturnType to ReturnType.Default solved that problem.
Thanks for the work around suggestions! Unfortunately none of them worked for me.
Creating a Customer Entry Renderer worked for me though:
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
{
var element = (MyCustomEntry) Element;
Control.ImeOptions = (ImeAction)ImeFlags.NoExtractUi;
Control.SetTextIsSelectable(false);
}
}
Description
Steps to Reproduce
x
to a page.x.On<Android>().SetImeOptions(ImeFlags.NoFullscreen);
)Expected Behavior
Focusing the Entry does not display it in full screen with the large "Done" button.
Actual Behavior
Full screen, large "Done" button.