Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Using a page as a picker for a control, in which a keyboard refuses to hide on Android

$
0
0

So I have a screen where I want it to be kind of like a Picker but the individual items have different amounts of informational text and such, so I wrote a second screen to use a UICollectionView on iOS and a RecyclerView on Android to serve as the picker.

On the first screen, I made the base control an Entry and on focus told the app to Navigation.PushAsync the picker page. The two share a ViewModel and in general this works very well. The keyboard never even looks like it was summoned, and on the whole it works exactly like a Picker that just happens to use a second screen.

On iOS.

On Android, apparently navigation does not dismiss the keyboard, so it pushes the picker page onto the screen, but at the bottom of the screen lies the keyboard, looking a little lost. "Guys, have you seen this Entry I was supposed to enter text for?"

Any suggestions? There doesn't seem to be a way to conveniently hide the keyboard on Android. Would it be better to use a dummy Picker and hook its events to show the second screen?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>