BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Query |
Response |
Set focus to an item in the view |
In Xamarin Forms, by default the focus will be moved to first item in the list and if custom view(entry) is loaded within the ViewCell, then focus will be moved to ViewCell instead of Entry cell. So, we recommend you to load the Custom View directly into the DataTemplate to resolve the issue at the sample level. |
SelectionChanged event gets triggered when tapped on entry |
We have checked the reported query “SelectionChanged event triggers while clicking the Entry in Android platform” at our end. InAndroid platform when background color is set for SfListView, touch click listener is not passed to the SfListView due to some limitations in Xamarin Forms Android and the gestures like tapping, double tapping etc.., cannot be detected. So, we have internally overridden the OnInterceptTouchEvent(Implement this method to intercept all touch screen motion events) in the Android renderer project to detect the gestures event when background color is set. TheOnInterceptTouchEvent is a Boolean type override method, if it returns false, the touch is passed to its child (example button within the ItemTemplate) and if it returns true(default value), touch interaction is not passed to its child. The touch interaction is not detected if background color is set for SfListView. Also, we have deeply analyzed to provide a workaround regarding this but currently we are unable to achieve it in a sample level due to some limitations in Xamarin Forms. |
What's even more interesting (and ultimately frustrating), is that this is the opposite with iOS. So, when you select the Entry in the ViewCell in iOS it DOES NOT trigger ListView.SelectionChanged. However, it does trigger it in Android, so you have to make an exception for one or the other platform.
Thank you. Is there something you suggest to also trigger the ListViewSelected event on iOS? Since I have to account for it on Android, I need to manually account for it in iOS.