I am working on Xamarin forms app, that uses AutoSuggestBox.
On iOS in landscape mode, it works ok, however on Android when used in landscape mode it hides all the suggested options under the keyboard, due to full-screen mode.
I have tried using android:Entry.ImeOptions="NoExtractUi" on AutosuggestBox but it didn't work for me, since the underlying Entry is not exposed so I tried to implement this mechanism in isolation.
I then added a test Entry control on the view to see if it would work. However, that fails to work too.
my xaml:
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="StruebyPhotoApp.MobileApp.Views.NewItemPage"
xmlns:asb="clr-namespace:dotMorten.Xamarin.Forms;assembly=dotMorten.Xamarin.Forms.AutoSuggestBox"
xmlns:android="clr-namespace:Xamarin.Forms.PlatformConfiguration.AndroidSpecific;assembly=Xamarin.Forms.Core"
ios:Page.UseSafeArea="true">
<ContentPage.Content>
<StackLayout Spacing="3" Padding="15">
<Entry android:Entry.ImeOptions="NoExtractUi" x:Name="TestText" />
To doubledown I have also added in the constructor
using Xamarin.Forms.PlatformConfiguration;
using Xamarin.Forms.PlatformConfiguration.AndroidSpecific;
public NewItemPage()
{
InitializeComponent();
TestText.On<Android>().SetImeOptions(ImeFlags.NoExtractUi);
}
I have also tried changing NoExtractUi to NoFullscreen and using
TestText.On<Android>().SetImeOptions(ImeFlags.NoExtractUi|ImeFlags.NoFullscreen);
and I am still getting this on Android 10
