views:

25

answers:

1

I'd like to provide a Button in the PreferenceActivity. The user should be able to set a time (e.g. via TimePicker), but there's no ButtonPreference or something like that. I don't want to use EditTextPreference.

So do I have to use a default Button in the PreferenceActivity and save the settings for it manually?

Regards,

cody

+1  A: 

Create a custom DialogPreference that incorporates a TimePicker widget. No button required. Should be under 100 lines of code.

Here is a sample project showing, among other things, a custom ColorPreference.

CommonsWare
Alright, thanks! :)
cody