dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22k stars 1.72k forks source link

[Android] Investigate SearchBar presentation in horizontal screen orientation #14708

Open rachelkang opened 1 year ago

rachelkang commented 1 year ago

Description

On Android, when interacting with a SearchBar (hitting cancel button, tapping to enter text, etc) while in horizontal orientation, the UI changes so that the SearchBar input takes up the whole screen and a default Android style black on gray SEARCH button appears to the right. There is no "X" / Clear button that is present in this view.

However, if interacting with the SearchBar while in vertical orientation, and then switching to horizontal orientation mid-interaction, the UI remains consistent when continuing to type. It is only interacting by tapping on the SearchBar that changes the experience.

I am yet to investigate what the expected behavior should be and what happens on the Android platform without MAUI. Logging this experience here to investigate further later.

https://user-images.githubusercontent.com/21988533/233669283-437ad283-cc63-4826-98b4-ee20488d3e68.mp4

Steps to Reproduce

  1. Pull down https://github.com/rachelkang/recipeSearch
  2. Type some text into the SearchBar. Do not search or close the keyboard
  3. Flip phone orientation and continue typing. Observe the UI/UX
  4. Tap on the SearchBar and continue interacting. Observe the different UI/UX

Link to public reproduction project repository

https://github.com/rachelkang/recipeSearch

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12

Did you find any workaround?

No response

Relevant log output

No response

ghost commented 1 year ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

XamlTest commented 10 months ago

Verified this on Visual Studio Enterprise 17.9.0 Preview 1(8.0.3). Repro on Android 13.0-API33 with below Project: recipeSearch.zip