Forum Xamarin.Forms

AutoSize Label with a Formatted Text not working on Android

snaiksnaik Member ✭✭
edited October 2 in Xamarin.Forms

I am trying to implement autofit functionality to the label, i.e. reduce the font size of the label to fit in the same line. Tried using effects and custom renderers as well. Works fine on iOS but not on Android because i am using Formatted text property in the Label.

I have posted detailed information on this issue here - https://stackoverflow.com/questions/64120955/autosize-label-with-a-formatted-text-not-working-on-android

Also, is it possible to change the font family of a specific word in a Label without using formatted text? because eliminating the use of formatted text could resolve the issue with autofit renderer/effect.

Any suggestions would be of great help. Thank you in advance.

Answers

  • LeonLuLeonLu Member, Xamarin Team Xamurai
    edited October 7

    Is it possible to change the font family of a specific word in a Label without using formatted text?

    Use two Labels with two different font families for two words, Or use custom renderers for a custom view, you can use two Textview combine the custom view in the android platform.

Sign In or Register to comment.