We have been using SfTextInputLayout for input forms for years without issues. For some inputs, tapping the SfTextInputLayout opens a page to make a selection which is updated into the input view Text afterwards, but the input view (e.g. Entry) is not directly edited by the user. This has, again, worked fine for years. Suddenly now on Android only the hitbox for a TapGestureRecognizer added to the SfTextInputLayout yields inconsistent results when trying to tap the SfTextInputLayout, but works just fine on iOS.
Packages (please let me know if you need other NuGet package details):
Devices tested:
Code sample:
Entry entry = new Entry() { Text = "Initial value sample text", IsEnabled = false };
VisualStateManager.SetVisualStateGroups(entry, new VisualStateGroupList());
TapGestureRecognizer lookupEntryGestureRecognizer = new TapGestureRecognizer();
lookupEntryGestureRecognizer.Tapped += async (s, e) =>
{
// Contrived example test code
entry.Text = "Input tapped " + System.DateTime.Now.Ticks.ToString();
};
var inputLayout = new SfTextInputLayout();
inputLayout.Hint = "Test input";
inputLayout.ContainerBackgroundColor = Color.Transparent;
inputLayout.ReserveSpaceForAssistiveLabels = false;
inputLayout.GestureRecognizers.Add(lookupEntryGestureRecognizer);
inputLayout.InputView = lookupEntry;