Closed kd7uiy closed 10 years ago
Good job !
@kd7uiy thanks for your pull request! I believe this will be nice addition to the library, there are two things to correct though: 1) SimpleTimePickerDialogFragment & SimpleDatePickerDialogFragment should extend BaseDialogFragment (or maybe base class for picker fragments?). I know it might be little bit more code, but with current solution clients will have available builder method setMessage() that have no sense in case of date/time picker. You can follow the ProgressDialogFragment example. While doing that, you can also add your own equivalent of ISimpleDialogListener where you can send the selected date/time.
2) Please, add an example of use to the demo project.
Thanks again and I'm looking forward for your changes!
I've made the changes you requested, except for putting a demo in to the project. I'll work on that soon, but I thought I'd give you another look.
Looks good, can't wait to try it in demo project :)
Added to the demo project. I'm already using a form of this in an app, BTW, called Ham Finder. It's used to pick my time/date for edits to the log. Thanks for making this possible, and let me know if there's anything else I need to do!
How's the latest version? I think I accidentally did a format of the entire file, which ensures consistent spaces, etc, but it can be a bit overbearing sometimes...
Added a new dialog, UsernamePassword. Also added a new Listener, TwoStrings, which works for anything that the output is two strings.
@tomas-vondracek: What do you think about recent changes in this pull request? Can we merge?
Hi, I have merged your changes in commit ec3b933fcb40cc01affc8266c8cfe20b635571ad
We chose to separate your pull request in two - we included the date and time picker, but didn't include the login dialog. We think that login dialog is not common, it's specific for your app, therefore it shouldn't be in the library.
Added a DatePicker dialog, with hooks to get the Date either in UTC or a specified TimeZone.