Xamarin.forms: [Bug] Secondary ToolbarItem text color is white on Android

Created on 8 May 2020  ·  7Comments  ·  Source: xamarin/Xamarin.Forms

Description

When updagrading a Shell project to Xamarin.Forms v4.6.0.726, secondary ToolbarItem text color become white.
As the background is also white, it is impossible to read the ToolbarItem text.

Steps to Reproduce

  1. Create a new Xamarin.Forms project with Shell Template (Xamarin.Forms v4.4.0.991265 is used by default).
  2. In AboutPage, add a ToolbarItem like this:
    <ContentPage.ToolbarItems>
            <ToolbarItem Text="Test" Order="Secondary" />
        </ContentPage.ToolbarItems>
  1. Deploy the app in Android and go check the created ToolbarItem : black text on white background.
  2. Update Xamarin.Forms to v4.6.0.726.
  3. Deploy the app in Android and go check the created ToolbarItem : white text on white background.

Expected Behavior

Secondary ToolbarItem text is black on white background.

Actual Behavior

Secondary ToolbarItem text is white on white background.

Basic Information

  • Version with issue: v4.6.0.726.
  • Last known good version: v4.5.0.725
  • IDE: Visual Studio 2019
  • Platform Target Frameworks:

    • Android: 9.0

4.4.0 shell toolbar 1 regression Android bug

Most helpful comment

Thanks for fixing! It works again.

All 7 comments

@karlp11 Did you find any workaround for this issue?

@thisismyself No workaround: I'm waiting the fix.

Same here, Any workaround for this issue?

I hope for a solution soon. Because in my apps the 'toolbaritems' can't be seen.

imagen
imagen

Thanks for fixing! It works again.

On IOS BarTextColor applies to all ToolbarItems.
But on Android it applies only to BackButton, and all other ToolbarItems stays white.

Android:
Снимок экрана 2020-07-20 в 15 59 36

IOS:
Снимок экрана 2020-07-20 в 15 59 44

@kefyru i think you would be better to log a separate issue as this is closed and not the same. Reference back to this one if you think it is related.

Was this page helpful?
0 / 5 - 0 ratings