Open avs333 opened 6 years ago
Hi! I'm open to receive pull request, so if you want to implement it I'll merge the PR and add your name to the collaborators :)
Unfortunately at this moment I haven't time to invest in this project.
@avs333, @Pes8 hey i modifed this code
works fine Example:
<com.domain.ColorPickerPreference
android:key="ElementColor"
android:summary="Choose color"
android:defaultValue="@color/colorPrimary"
android:title="Color"
<!--AddAlpha="true|false"-->>
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!