JWhitakerMcRae / color-picker-view

Automatically exported from code.google.com/p/color-picker-view
0 stars 0 forks source link

Enhancement suggestion #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a great project!  I would suggest you add a DialogPreference 
implementation so that your color picker can more easily be used in a 
PreferenceActivity.  I did this myself in just a few minutes by copying some of 
the code from ColorPickerDialog to a new ColorDialogPreference class.  I have 
attached the source code for this new class and provided my preferences.xml 
file below that uses it in my PreferenceActivity.

<afzkl.development.mColorPicker.ColorDialogPreference
   android:key="@string/foregroundColorKey"
   android:title="Foreground"
   android:summary="Foreground color to use for 2-color puzzles"
   android:dialogIcon="@drawable/question"
   android:dialogLayout="@layout/dialog_color_picker"
   android:dialogTitle="Foreground Color"
   android:positiveButtonText="OK"
   android:negativeButtonText="Cancel"/>

Original issue reported on code.google.com by spcw...@gmail.com on 31 Dec 2010 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago
Hi!

I have finally updated the project and there is now a ColorPickerPreference 
class!

Original comment by daniel.n...@gmail.com on 19 Jun 2013 at 6:42