<autocomplete:SfAutoComplete DisplayMemberPath="Name" MaximumDropDownHeight="200"
DataSource="{Binding EmployeeCollection}" /> |
<local:CustomComboBox x:Name="comboBox" IsEditableMode="True" MultiSelectMode="Delimiter" VerticalOptions="Center" Watermark="Start typing"
HeightRequest="40" SuggestionBoxPlacement="Top"
DisplayMemberPath="Name" MaximumDropDownHeight="300"
DataSource="{Binding EmployeeCollection}"/>
|
comboBox.DropDownButtonSettings = new Syncfusion.XForms.ComboBox.DropDownButtonSettings() { Width = 0, Height = 0 }; |
[assembly: ExportRenderer(typeof(CustomComboBox), typeof(ComboBoxRenderer))]
namespace AutoCompleteSample.Droid
{
public class ComboBoxRenderer : SfComboBoxRenderer
{
public ComboBoxRenderer(Context context) : base(context)
{
}
protected override void OnElementChanged(ElementChangedEventArgs<Syncfusion.XForms.ComboBox.SfComboBox> e)
{
base.OnElementChanged(e);
if (e.NewElement != null)
{
Control.DropDownOpen += Control_DropDownOpen;
}
}
private void Control_DropDownOpen(object sender, EventArgs e)
{
if (Control.SuggestionBoxPlacement == Syncfusion.Android.ComboBox.SuggestionBoxPlacement.Top)
{
Control.GetAutoPopUpWindow().ShowAtLocation(this, GravityFlags.NoGravity, 50, 100);
}
}
} |
Hi Mark,Thanks for the update. We are also having followup with the issue and we will share you if we get any updates.Regards,Divya Venkatesan
Hello,
I want to follow up on this, any updates on this issue? This is still an issue, the user can't see the suggestion box when the Android's on-screen keyboard is visible, especially in landscape mode.
Thank you
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);
} } |
This has fixed the issue, thank you for your support!