Xamarin.forms: [Bug][Android] SearchBar rendering issue in 4.5-pre2 on API 28

Created on 28 Jan 2020  路  4Comments  路  Source: xamarin/Xamarin.Forms

Description

SearchBar isn't rendering correctly on Android in 4.5-pre2. Here's how a SearchBar should render on Android:

filter-multiple-views-large

Here's how a SearchBar is currently rendering with Forms 4.5-pre2:

Screenshot_1580213410

The magnify icon is white, can't even see the X icon, and the underline is white. The overall effect is that the SearchBar is barely visible.

Steps to Reproduce

  1. Run the attached sample on Android.
  2. Browse to any of the EmptyView pages that do filtering.

Expected Behavior

A SearchBar fully appears at the top of the page.

Actual Behavior

A SearchBar partially appears, but the magnify icon, x icon, and underline barely appear.

Basic Information

  • Version with issue: 4.5-pre2
  • IDE: VSMac 8.4.2
  • Platform Target Frameworks:

    • Android: API 28

Screenshots

Behold the SearchBar:

Screenshot_1580213410

Reproduction Link

CarouselViewDemos.zip

4.5.0 searchbar 3 regression Android bug

Most helpful comment

We're experiencing this issue on Xamarin.Forms 4.4.0.991477. Could you suggest a workaround?
Though, the issue is gone when dowgrading to 4.3.0.991250. Platform: Android API 23

All 4 comments

possibly related to #9266

We're experiencing this issue on Xamarin.Forms 4.4.0.991477. Could you suggest a workaround?
Though, the issue is gone when dowgrading to 4.3.0.991250. Platform: Android API 23

Any hope for the workaround?..

Any hope for the workaround?..

Yes, see https://github.com/xamarin/Xamarin.Forms/issues/9266#issuecomment-619115611

Was this page helpful?
0 / 5 - 0 ratings