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

Entry field in landscape orientation on Android has modal behaviour. How to stop it?

$
0
0

On the physical Android phone that I am using for testing my XF app, in landscape mode tapping on an Entry results in that Entry being expanded to fill all of the available vertical space, with a Done button appearing to the side. All very nasty, as per the attached screenshot (the dissociation between the two highlighted areas appears to be a bug in XF).

There are a few of problems with this:
(1) The Label that appears above each Entry to describe it's purpose is hidden when the Entry expands to fill all available space in landscape orientation. Whilst the keyboard is visible, the user cannot scroll the page to see the descriptive Label.
(2) The app under test validates what the user is typing, with feedback being displayed using a Label immediately beneath the Entry. In this expanded Entry view in landscape orientation, that validation feedback is hidden. Whilst the keyboard is visible, the user cannot scroll the page to see the validation Label.
(3) Using Repl() in Xamarin.UITest, I can see that this is still deemed to be the app's page, rather than some XF generated dialog. However, whilst the keyboard is displayed, scrolling does not function. Further, Repl() does not show that additional "Done" button, so automated tests cannot interact with it. That presumably means it is deemed to be part of the Entry, but I imagine it would take a custom control to be able to realistically identify it and explicitly press it.

Is there any way I can disable the Entry field switching into this modal state when in landscape mode on an Android phone?

Thanks again,

John H.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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