This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 53909 - XML drawables cannot be used as ToolbarItem.Icon
Summary: XML drawables cannot be used as ToolbarItem.Icon
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android (show other bugs)
Version: 2.3.4
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-03-24 13:24 UTC by Alexander
Modified: 2017-03-29 18:24 UTC (History)
4 users (show)

See Also:
Tags:
Is this bug a regression?: Yes
Last known good build: 2.3.3.193


Attachments

Description Alexander 2017-03-24 13:24:58 UTC
In earlier versions an android XML drawables can be used as toolbar icons.
For example: https://bugzilla.xamarin.com/show_bug.cgi?id=25661#c12
Please note - there is no other way to show different icons for enabled/disabled toolbar items.

In 2.3.4, after merging https://github.com/xamarin/Xamarin.Forms/pull/437, this functionality was broken - now only PNG files can be used. Attempt to use XML drawables causes errors in android log like this:

E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /ic_delete_white: open failed: ENOENT (No such file or directory)

And corresponded toolbar item contains text only.

Please, restore possibility to use XML drawables in XF.Android.
Comment 1 Samantha Houts 2017-03-29 16:58:39 UTC
Should be fixed in 2.3.4-pre6. Thank you!

Note You need to log in before you can comment on or make changes to this bug.