protected void UpdateSelectedColor() { if (CellParent != null && CellParent.SelectedColor != Color.Default) { SelectedColor.Color = CellParent.SelectedColor.MultiplyAlpha(0.5).ToAndroid(); Ripple.SetColor(DrawableUtility.GetPressedColorSelector(CellParent.SelectedColor.ToAndroid())); } else { SelectedColor.Color = AColor.Argb(125, 180, 180, 180); Ripple.SetColor(DrawableUtility.GetPressedColorSelector(AColor.Rgb(180, 180, 180))); } }
protected virtual void UpdateTouchFeedbackColor() { if (ViewHolder.IsHeader || CellParent.TouchFeedbackColor.IsDefault) { return; } var feedbackColor = CellParent.TouchFeedbackColor.MultiplyAlpha(0.5).ToAndroid(); if (Foreground == null) { Foreground = DrawableUtility.CreateRipple(feedbackColor); } else { var ripple = Foreground as RippleDrawable; ripple.SetColor(DrawableUtility.GetPressedColorSelector(feedbackColor)); } }