TextView textView = FindViewById(Resource.Id.textview1); textView.SetTextColor(Android.Graphics.Color.Red);
TextView textView = FindViewByIdThis example changes the text color of TextView with id "textview1" to green if a certain condition is met, otherwise it changes it to red. Package library: The SetTextColor method is part of the Android.Widget package library.(Resource.Id.textview1); if (condition) { textView.SetTextColor(Android.Graphics.Color.Green); } else { textView.SetTextColor(Android.Graphics.Color.Red); }