Beispiel #1
0
        public static void SetColorFilter(this ADrawable drawable, Color color, AColorFilter defaultColorFilter, FilterMode mode)
        {
            if (drawable == null)
            {
                return;
            }

            if (color == Color.Default)
            {
                SetColorFilter(drawable, defaultColorFilter);
                return;
            }

            drawable.SetColorFilter(color.ToAndroid(), mode);
        }
Beispiel #2
0
 public static void SetColorFilter(this ADrawable drawable, Color color, FilterMode mode)
 {
     drawable.SetColorFilter(color.ToAndroid(), mode);
 }