- Home
- Forum
- Xamarin.Forms
- TapGestureRecognizer hitbox wildly inconsistent on Android for SfTextInputLayout
TapGestureRecognizer hitbox wildly inconsistent on Android for SfTextInputLayout
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):
- Syncfusion: 19.2.0.6
- Xamarin.Forms: 5.0.0.2125
- Xamarin.Google.Android.Material: 1.4.0.4
Devices tested:
- Emulator: Pixel 3 XL (Android 9 - API 28)
- Emulator: Pixel 3 XL (Android 11 - API 30)
- Physical device: OnePlus 7 Pro,Model GM1917 (Android 11 - API 30)
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;
SIGN IN To post a reply.
3 Replies
ET
Eswaran Thirugnanasambandam
Syncfusion Team
October 6, 2021 01:34 PM UTC
Hi Andrew Hoke,
Greetings from Syncfusion.
Currently, we are checking the reported problem “TapGestureRecognizer hitbox wildly inconsistent on Android for SfTextInputLayout” and we will update the details on October 7,2021.
Regards,
Eswaran
ET
Eswaran Thirugnanasambandam
Syncfusion Team
October 7, 2021 02:38 PM UTC
Hi Andrew Hoke,
Thanks for your patience.
We can reproduce the reported problem “TapGestureRecognizer hitbox wildly inconsistent on Android for SfTextInputLayout” and we have considered it as an internal bug. We will fix it and include in our upcoming weekly NuGet which is expected to be released on October 12, 2021. We appreciate your patience until then.
Regards,
Eswaran.
RS
Ragul Subramani
Syncfusion Team
October 12, 2021 01:34 PM UTC
Hi Andrew Hoke,
We have fixed the reported issue “TapGestureRecognizer hitbox wildly inconsistent on Android for SfTextInputLayout” and the fix is included in our weekly NuGet of October 12, 2021.
NuGet Version: 19.3.0.45
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Ragul S V.
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
AH Andrew Hoke
- Oct 5, 2021 11:26 PM UTC
- Oct 12, 2021 01:34 PM UTC