forked from captswag/material-color-picker
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Labels
Description
Thank you for the code!
It'd be cool if you added support for DialogPreference, because the colour selection would often be from the settings of a program, and it'd be handy there!
You have to make the private View colorView public and write something like
@OverRide
protected View onCreateDialogView() {
colorpicker.show();
View vl = (View) colorpicker.colorView.getParent();
ViewGroup vp = (ViewGroup) vl.getParent();
if(vp != null) vp.removeView(vl);
return vl;
}
I wish you luck!
long76 and artspb