protected override void OnAttached() { IntPtr IntPtrtextViewClass = JNIEnv.FindClass(typeof(TextView)); IntPtr mCursorDrawableResProperty = JNIEnv.GetFieldID(IntPtrtextViewClass, "mCursorDrawableRes", "I"); JNIEnv.SetField(Control.Handle, mCursorDrawableResProperty, ColorResourceId); Control.Background.Mutate().SetColorFilter(LineColor.ToAndroid(), Graphics.PorterDuff.Mode.SrcAtop); }
protected override void OnAttached() { var editText = Control as global::Android.Widget.EditText; ViewCompat.SetBackgroundTintList(editText, ColorStateList.ValueOf(LineColor.ToAndroid())); }