Skip to content

IconImageSource not appearing for secondary ToolbarItems on Android and Catalyst #30675

Closed as not planned

Description

@NafeelaNazhir

Description

After the implementation of secondary toolbar support for iOS and Mac Catalyst in #28185 the IconImageSource property does not render for secondary toolbar items on Android and Mac Catalyst.

Expected Output Actual Output
Image Image

Expected Behavior
IconImageSource should be rendered for both primary and secondary toolbar items across all platforms, including Android and Catalyst.

Steps to Reproduce

Link to public reproduction project repository

src/Controls/samples/Controls.Sample/Pages/Core/ToolbarPage.xaml

Version with bug

10.0.0-preview.6

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Android, macOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Activity

  1. added
    t/bug
    on Jul 17, 2025
  2. added
    partner/syncfusion
    on Jul 17, 2025
  3. similar-issues-ai commented on Jul 17, 2025

    @similar-issues-ai

    We've found some similar issues:

    If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

    Note: You can give me feedback by 👍 or 👎 this comment.

  4. ghost added
    s/verified
    on Jul 17, 2025
  5. ghost added
    s/triaged
    on Jul 17, 2025
  6. changed the title [-]IconImageSource not appearing for secondary ToolbarItems on Android and Mac Catalyst[/-] [+]IconImageSource not appearing for secondary ToolbarItems on Android and Catalyst[/+] on Jul 17, 2025
  7. added this to the Backlog milestone on Jul 17, 2025
  8. self-assigned this
    on Jul 19, 2025
  9. kubaflo commented on Jul 19, 2025

    @kubaflo
    Contributor

    I'm fairly certain this is the default behavior in Android—icons are not displayed for secondary menu items in the overflow menu. I created a sample app in Android Studio to confirm this, and the results support my assumption.

    Image Image
    <?xml version="1.0" encoding="utf-8"?>
    <androidx.coordinatorlayout.widget.CoordinatorLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:fitsSystemWindows="true"
        android:layout_width="match_parent"
        android:layout_height="match_parent">
    
        <androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_height="wrap_content"
            android:layout_width="match_parent"
            android:background="?attr/colorPrimary"
            android:theme="?attr/actionBarTheme"
            android:popupTheme="@style/ThemeOverlay.AppCompat.Light"
            app:title="Toolbar Demo"
            app:menu="@menu/toolbar_menu"
            />
    </androidx.coordinatorlayout.widget.CoordinatorLayout>
    <menu xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto">
    
        <!-- Primary item -->
        <item
            android:id="@+id/action_search"
            android:title="Search"
            android:icon="@drawable/clock"
            app:showAsAction="ifRoom|withText" />
    
        <!-- Secondary item -->
        <item
            android:id="@+id/action_settings"
            android:title="Settings"
            android:icon="@drawable/clock"
            app:showAsAction="never" />
    </menu>
  10. kubaflo commented on Jul 19, 2025

    @kubaflo
    Contributor

    It looks like catalyst also doesn't support icons in our case:

    Image
  11. kubaflo commented on Oct 17, 2026

    @kubaflo
    Contributor
  12. locked and limited conversation to collaborators on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-controls-toolbarpartner/syncfusions/triageds/verifiedt/bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions