Skip to content

Unable to dynamically set unselected IconImageSource Color on Android #26662

@Croppo

Description

@Croppo

Description

In my app, I have a TabbedPage with tabs that each have a title and an IconImageSource. The desired behavior is for one of the tab icons to always display in a red emergency color, regardless of whether the tab is selected or not.

While this works as expected on iOS, where the color is applied correctly regardless of selection state, the issue arises on Android. On Android, the icon color only updates when the tab is selected, and the unselected color is not applied as intended.

Attached are images for reference, showing the issue.

I previously raised a similar issue regarding the ability to manipulate the UnselectedTabColor. It was clarified that the expected behavior is for all unselected tab colors to be the same, which is fine since the title color does not need to change.

This new issue pertains specifically to the IconImageSource not updating. While this works as expected on iOS, it does not update on Android. Given this discrepancy, I believe this to be a bug.

Steps to Reproduce

  1. Clone Repo
  2. Scroll through and view Tabs

Link to public reproduction project repository

https://github.com/Croppo/MauiTabbedIconColourRepro

Version with bug

8.0.90 SR9

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions