Bug 58245 - Entry gets focus when scrolled in a ScrollView
Summary: Entry gets focus when scrolled in a ScrollView
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.4
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-07-19 13:10 UTC by bgabor
Modified: 2017-11-26 00:09 UTC (History)
4 users (show)

Tags: ac android entry scrollview focus
Is this bug a regression?: ---
Last known good build:


Attachments
Repro (332.45 KB, application/x-zip-compressed)
2017-07-19 13:10 UTC, bgabor
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 58245 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description bgabor 2017-07-19 13:10:34 UTC
Created attachment 23657 [details]
Repro

I created a horizontal scrollview, and I put some user controls insde it, which contains Entry items. When I am scrolling horizontally, one of the entries gets focused, sometimes randomly. It happens only on Android, on iOS it is working fine.

Attaching a project to test.
Comment 1 Jimmy [MSFT] 2017-07-19 15:45:10 UTC
I ran the attached project and I was able to reproduce the issue described. I believe this is different than other issues reported with Entry controls inside ListViews because this one is with a ScrollView and separate Entry instances. 

The issue is only happening on Android and does _not_ happen when the ScrollView and StackLayout are used vertically. I am confirming the report and we will investigate further.


### Version Tests
2.3.6.119   BAD
2.3.5-pre6  BAD
2.3.4.247   BAD
Comment 2 adrianknight89 2017-11-26 00:09:57 UTC
This can help you prepare a fix: 

https://stackoverflow.com/questions/8100831/stop-scrollview-from-setting-focus-on-edittext

Please make sure to test it against FastRenderers and different soft input modes (pan, resize, etc.)