Bug 58737 - The EditText has not get focus inside the viewCell
Summary: The EditText has not get focus inside the viewCell
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-08-13 02:58 UTC by Paul Anderson
Modified: 2017-09-20 03:23 UTC (History)
2 users (show)

Tags: edittext, upstream, ac
Is this bug a regression?: ---
Last known good build:

Sample (115.79 KB, application/zip)
2017-08-13 02:58 UTC, Paul Anderson
CustomRendererSample (116.40 KB, application/zip)
2017-08-16 04:00 UTC, Paul Anderson

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 58737 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:

Description Paul Anderson 2017-08-13 02:58:24 UTC
Created attachment 24155 [details]

We have used the EditText with the children of LinearLayout in Native Android. We have mapped this layout in forms and used inside the ViewCell. 

If we focus the EditText it’s not get the focus. 

I have prepared a simple sample to reproduce this issue.
Comment 1 Paul DiPietro [MSFT] 2017-08-13 16:24:58 UTC
I'll set this to confirmed for now but I believe this may be an Android (Google) issue; based on the debug output of "TextView does not support text selection. Selection cancelled." it looks like other individuals have run into this problem both within the context of Forms as well as outside of it.

Just for reference:

https://stackoverflow.com/questions/37566303/edittext-giving-error-textview-does-not-support-text-selection-selection-canc (referred to by the above)

This is not the exact same scenario here but I wouldn't be surprised if it was related. We can keep track of this in the meantime.
Comment 2 Paul Anderson 2017-08-16 03:59:35 UTC
I have tried the above links, but this issue has not resolved. I have added the CustomRenderer file and used the OnAttachedWindow override method to set the NativeEditText enabled method. I have prepared a simple sample for this scenario.
Comment 3 Paul Anderson 2017-08-16 04:00:28 UTC
Created attachment 24213 [details]
Comment 4 Paul Anderson 2017-09-20 03:23:55 UTC
Can you please check our sample and update us with workaround solutions. We will wait for your response.