Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Issue: icon of ToolbarItem not shown in Android

$
0
0

Hi

I do have a problem showing an icon in Android within a ToolbarItem. With iOS there is no problem.

Some background info:

Framework.Xamarin.Forms
- Contains following code:

toolbarItem = new ToolbarItem() { Icon = action.Icon, Text = action.Icon == null ? action.Text : null, Order = ToolbarItemOrder.Primary, Command = action.Command, CommandParameter = action.CommandParameter };

DemoApp.Droid
- Resources
- drawable
- Image.png

In my ContentView I set the icon.

Why is the icon (Image.png -> 20x20 ) not shown in my ToolbarItem?

I hope someone can help me out.

Kind regards


Viewing all articles
Browse latest Browse all 77050

Trending Articles