SfAutoComplete Suggestion box not visible with keyboard on-screen

SFAutoComplete suggestion box is not visible when the on-screen keyboard appears on Android. I have tried to set the placement of the suggestion box to the top and MaximumDropDownHeight to a large number with no use. Please note once I close the on-screen keyboard, I can see the suggestion box. It seems the On-screen keyboard is shifting the suggestion box position, or it's going under it?
This issue is significantly noticed when using landscape mode on Android
Thank you for your support

3 Replies 1 reply marked as answer

JK Jeya Kasipandi Syncfusion Team July 21, 2021 10:47 AM UTC

Hi John,

We have validated your query and we suggest you set Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize) in the Main Activity class of Android project after the LoadApplication method to resolve the reported issue. Please find the below code snippet for this

Code snippet  
  

  public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
    {
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
            Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);
        }
    }

Please refer the below link for this
https://help.syncfusion.com/xamarin/autocomplete/dealing-with-suggestion-box

Please check with the above and let us know the reported issue resolved or not.

Regards,
Jeya K

Marked as answer

JB John Burns July 21, 2021 01:08 PM UTC

This has fixed the issue, thank you for your support!



JK Jeya Kasipandi Syncfusion Team July 22, 2021 09:14 AM UTC

Hi John, 

Thanks for the update.

We are glad to know that the reported issue has been resolved at your end.

Please let us know if you have any other queries.

Regards,
Jeya K 


Loader.
Up arrow icon