New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] FontImage Icon fails on Android in certain situations #9371
Comments
@wagenheimer This looks like it's an issue with how the StaticResource gets mapped to the FontImageSource If you add a Size parameter
Then they all render correctly |
This regressed here https://github.com/xamarin/Xamarin.Forms/pull/8063/files#diff-286d535dfc3a7d8dda9c1f9a78e8130aL28 @StephaneDelcroix thoughts? |
Unfortunately, this workaround didn't work! |
@wagenheimer can you attach a repro? I tested your sample by setting size and it worked for me |
The colors you have set for the fontimage is white which is really hard to see <ShellContent
Title="Items"
ContentTemplate="{DataTemplate local:ItemsPage}"
Icon="{FontImage Glyph={x:Static fontawesome:FontAwesomeIcons.List},
FontFamily={StaticResource FontAwesomeLight} ,
Size=16,
Color='Black'}" />
<ShellContent
Title="About"
ContentTemplate="{DataTemplate local:AboutPage}"
Icon="{FontImage Glyph={x:Static fontawesome:FontAwesomeIcons.CalendarAlt},
FontFamily={StaticResource FontAwesomeLight},
Size=16,
Color='Black'}" /> |
Description
FontImage Icon fails on Android in certain situations. In certain situations, it works.
I attached an example where the problem happens.
Using this code the Icons does not work:
The icons are not visible and Output Windows displays the following error :
I can confirm that everything was working at least until Xamarin Forms 4.4.0.1203-nightly.
Steps to Reproduce
Expected Behavior
Icons do appears on Flyout Menu.
Actual Behavior
No Icons does appear on Flyout Menu.
Basic Information
Screenshots
Reproduction Link
https://www.dropbox.com/s/s2olx9bga5m18sk/ShellIconProblem.zip?dl=0
The text was updated successfully, but these errors were encountered: