TTMSFMXBadge color and text

Hi 


How change text and fill color via code on TTMSFMXBadge ?

on android change text have no effect ?

Thx

Hi,


You can use the following code to change color and text at runtime


  TMSFMXBadge1.NeedStyleLookup;
  TMSFMXBadge1.ApplyStyleLookup;
  (TMSFMXBadge1.GetContent as TRoundRect).Fill.Color := TAlphaColorRec.Green;
  (TMSFMXBadge1.GetContent as TRoundRect).Fill.Kind := TBrushKind.Solid;
  (TMSFMXBadge1.GetText as TText).Text := 'Hello';