protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); var cPickerView = new RoundColorPickerView(Context, _initialColor); cPickerView.ColorChanged += delegate(object sender, ColorChangedEventArgs args) { if (ColorChanged != null) ColorChanged(this, args); Dismiss(); }; SetContentView(cPickerView); SetTitle("Pick a Color"); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); var cPickerView = new RoundColorPickerView(Context, _initialColor); cPickerView.ColorChanged += delegate(object sender, ColorChangedEventArgs args) { if (ColorChanged != null) { ColorChanged(this, args); } Dismiss(); }; SetContentView(cPickerView); SetTitle("Pick a Color"); }