-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Android] Picker list shows up, when focus is set on other controls. #4187
Comments
Same issue as this #4260 We are getting this too. Both real and emulated devices. We were on the latest 3.4 pre but I am now going back through the versions to find a release where this doesn't happen. |
cceee9d#diff-a8dc9a010c576f0d2924c24ea2e54596R103 This most recent commit to PickerRenderer.cs looks highly suspect to me. |
I have developed a workaround for those in desperate need. Rather simple, turn off the I've tested this rudimentarily and cannot find any impacts, though I'm sure it reverses the TabStop improvements that the aforementioned commit was meant to bring.
|
I was about to post here and issue about this aswell as I was facing a similar issue after updating from 3.2.. to 3.3.0.912540. But, I can confirm that using the workaround Control.Focusable = false; in the customrendered as mentioned solved the acute problem. |
Glad it was of help to you 👍 |
Issue still exist in 3.3.0.967583 |
I just noticed another bug, I am not sure if this is related. Android only: If Option A is selected and I select B and then scrol down, so that the entry is out of focus, the option gets resetted to A. Do you also see this problem? |
Try changing the CachingStrategy of the ListView to "RetainElement" |
Yes that worked. I also opened the issue here and got a different suggestion as well: #4390 |
Issue still exist in 3.4.0.1008975 |
A more complete workaround. Place this class in the Android project, just replace the namespace
|
@rmarinho Will this be in the next 3.4.x release? I just put in some nasty hacks to get around this in 3.4.0.1008975. |
@valdetero yes |
Thanks all. FWIW this "fixed" the reported issue which was also happening in my app. But with 3.4.1009999 I found that the on screen keyboard input was now messed up. I'm not sure if its related to this fix or if its something new in the release. Just a heads up. For me, I'm using a SearchBar instead of an Entry, it might accept a few characters but then it freezes up, and in fact the keyboard hangs around even after the app was killed. |
@kellyelton Hi Kelly, your fix worked like a charm thank you so much! Now a new one came out... with the entry fields, the keyboard pops out in weird situations. Is there a way to do something similar? |
@baneageorge I would ask @nbevans , I just copied thier solution and made it easier to copy/paste. |
Description
Android issue.
Xamarin.Form 3.3.0.912540 issue. Works ok in 3.2.0.871581
When setting the focus on some other control, picker list shows up. when picker and other controls are inside ListVew.DataTemplate.ViewCell.
App2.zip
Steps to Reproduce
Expected Behavior
when setting the focus on the entry, picker list should not show up.
Actual Behavior
when setting the focus on the entry, picker list shows up.
Basic Information
Sample
App2.zip
The text was updated successfully, but these errors were encountered: