Xamarin Forms is removing the space between words at runtime

Asked

Viewed 82 times

1

I’m working on a project with Xamarin Forms Visual Studio. When running the project for iOS, it works perfectly, but when running the same project for Android the phrases appear all together. Ex.:

<StackLayout Orientation="Vertical">
    <Label
        Text="Aguarde! Processando..."
        TextColor="{x:StaticResource ColorPrimary}"
        FontSize="Small"
        HorizontalTextAlignment="Center"/>
    <ActivityIndicator
        Color="{x:StaticResource ColorPrimary}"
        IsRunning="True"/>
</StackLayout>  

The result is:

Imagem

This happens for all phrases in XAML files.
If in XAML this <Label Text="Xamarin Forms Visual Studio"/>, when executed is Xamarinformsvisualstudio.

Beginning of XAML: <?xml version="1.0" encoding="UTF-8"?>;
I already checked the tag xml:space="preserve" in the Resource files;
I tried to insert this same tag directly in the XAML file and nothing.

Any suggestions?

Thank you!!!

  • Dude... Really weird! You already tried the magic solution: delete obj and bin, clean and rebuild?

  • Yes, it was one of the first things I did. In fact, this tip is really good, solved several other problems I had during development. Anyway thank you for the reply!

1 answer

1


I used the Icomoon site to generate a file with more font options to include in my project. On iOS worked normally, but on Android presented this problem.

I managed to solve by removing the file generated by Icomoon and adding in place a file that I downloaded on the internet from Fontawesome, then started to work properly.

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.