Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibilty to return null as "no date selected"? #5

Closed
Rainer-Lang opened this issue Jun 23, 2015 · 4 comments
Closed

Possibilty to return null as "no date selected"? #5

Rainer-Lang opened this issue Jun 23, 2015 · 4 comments

Comments

@Rainer-Lang
Copy link

I need the possibilty to return that the user doesn't want to set a date.
I/the user start with "no date" and I need that the user also could go back to the initial value "no date".

@vikramkakkar
Copy link
Owner

Can you please clarify your request a bit more?

So, you want the DatePicker to be active/available for date-selection, but have no initial date set?

Btw, the option to disable the DatePicker is already available. But, I'm not sure if that's what you're looking for.

@Rainer-Lang
Copy link
Author

I have a fragment where the user can define a start-date for a task.
Initially the start-date is empty (null) so I write in the EditText "immediately", which means the task will start immediatly after the user pressed "start task". BUT the user could save the task as draft - and start the task later.

Now the user can open DatePicker and pick another date - which I write in the edit.
If the user want to reset the start-date - he couldn't.

I need a start-date null.
Maybe you have another great idea... ;-)

@Rainer-Lang
Copy link
Author

Maybe a button with "none" in date- and timepicker?

@Rainer-Lang
Copy link
Author

I solved this. I use a separated button to clear the EditText (date or time).
=> closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants