I am working on a CustomRenderer, which involves changing the text color of a TextView. In XAML, I could do this:
android:textColor="@Color /Black"
However, in my CustomRenderer (which uses View/ViewRenderer as base classes), I get errors such as:
cannot convert from 'Xamarin.Forms.Color' to 'Android.Content.Res.ColorStateList?'
for code such as:
this.txtCircleButton.SetTextColor(this.Element.LabelTextColor);
In this statement, this.txtCircleButton is a TextView and LabelTextColor is a Xamarin.Forms.Color. I'm not sure what to do to fix this. Any ideas? Thanks.