Is there a way that I can use Spans inside of a label and also have it justified?

前端 未结 1 1077
無奈伤痛
無奈伤痛 2021-01-06 04:24

I am using this code to add some colors to my text inside of a label:


  
     

        
1条回答
  •  耶瑟儿~
    2021-01-06 04:43

    You will have to update the renderer to consider FormattedText. For e.g.: try changing renderer logic to following:

    public class JustifiedLabelRenderer : LabelRenderer
    {
        protected override void OnElementChanged(ElementChangedEventArgs

    0 讨论(0)
提交回复
热议问题