问题
Font awesome icons are not working for me in Xamarin.Forms. This is my Label
xaml
<Label TextColor="Red" FontFamily="FontAwesomeBrands" FontSize="Large" Text=""
RelativeLayout.WidthConstraint="{ConstraintExpression Type=RelativeToParent,
Property=Width,Factor=1}">
</Label>
I have added these file in Assests
folder of android project
Output just showing empty symbol. how can I make it work?
回答1:
Have you created platform-specific CustomRenderers
for that?
Please, look at my answer, and follow the tutorial. Link to answer
Hope this helps!
回答2:
I use Xam.FormsPlugin.Iconize and Xam.Plugin.Iconize NuGet packages for icons:
xmlns:iconize="clr-namespace:FormsPlugin.Iconize;assembly=FormsPlugin.Iconize"
<iconize:IconLabel Text="fa-question-circle" FontSize="Medium" TextColor="#666666" HorizontalTextAlignment="End"/>
来源:https://stackoverflow.com/questions/55492832/font-awesome-icon-not-showing-up-in-xamarin-forms