Skip to content

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

Description

@rachelkang

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.

screen-20230421-105531.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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions