public ColorPaletteAdapter(IOnColorSelectedListener listener, Color[] colors, int selectedPosition, ColorShape colorShape) { _listener = listener; Colors = colors; _selectedPosition = selectedPosition; _colorShape = colorShape; }
public ColorSelector(Context context, Color color, IOnColorSelectedListener onColorSelectedListener) : base(context, Android.Resource.Style.ThemeTranslucent) { this.context = context; this.onColorSelectedListener = onColorSelectedListener; if (color != null) { this.color = color; } this.DismissEvent += (sender, e) => { if (onColorSelectedListener != null) { onColorSelectedListener.OnColorSelected(color); } }; }