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
Original issue reported on code.google.com by
spcw...@gmail.com
on 31 Dec 2010 at 5:31Attachments: