An Android dialog that displays a date picker. Because it's an extension of the AlertDialog, it also supports buttons.
Questions tagged [datepickerdialog]
318 questions
0
votes
1 answer
How to set date in datepicker after specified date
It is my XML file named create_event.xml

user3388240
- 27
- 1
- 7
0
votes
1 answer
I will inquire Calender, TimePickerDialog on Android
I'll take only two questions related to Android.
I would like to have answered, I'd greatly appreciate it.
1
When you convert to java Calender, why values differ?
ex)
year: 1967
month: 12
day: 31
Calendar calendar = Calendar.getInstance…

CoreJ
- 11
- 3
0
votes
1 answer
Getting data from a DatePickerDialog to a fragment
As above I am trying to work out how to pass back the date selected by the user. I have worked out how to get the date selected by using the onDateSet method but I do not know how to feed this back to the parent fragment, and then set the EditText…

Lockey
- 25
- 5
0
votes
2 answers
How can i change date picker done background and selector background in android?
In android date picker i need to change the done button background.
Code:
private void showDateDialog()
{
Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int monthOfYear = c.get(Calendar.MONTH) + 1;
int…

Navadeep
- 49
- 1
- 10
0
votes
3 answers
DatePickerDialog always opens the current date
I am having trouble with a DatePickerDialog, everytime I open it shows the current date not the date I set previously.
Here's my code:
final Calendar c = Calendar.getInstance();
final int mYear = c.get(Calendar.YEAR);
final int mMonth =…

Compaq LE2202x
- 2,030
- 9
- 45
- 62
0
votes
1 answer
Android MonoDroid Xamarin TimePickerDialog access to mMinuteSpinner NumberPicker
I'm trying to set the TimePickerDialog to intervals of 10 mins, I have seen various solutions that look like they should work however the most elegant solution seems to be to derive from TimePickerDialog and then override the NumberPicker properties…

Webmonger
- 593
- 1
- 7
- 19
0
votes
1 answer
Difference between datepicker and datepicker dialog?
Simple and clear, I just want to know if there any difference between them.

SaiKanth_K
- 163
- 1
- 12
0
votes
1 answer
DatePickerDialog - How to display Day, Month then Year
No matter what I do, my DatePickerDialog always displays the month, the day then the year.
Or I need to display the day, the month and then the year.
How can I do that ?
Here is my little code :
Calendar cal =…

Lynal
- 97
- 1
- 1
- 6
0
votes
2 answers
How to handle dynamically created datepickers?
I am trying to create date pickers dynamically (where I do not know the exact number).
I was referring to this tutorial http://javapapers.com/android/android-datepicker/.
In my code I create date pickers in the following way :-
TableRow row = new…

Newbie
- 129
- 1
- 3
- 11
0
votes
1 answer
hide day picker in datepickerdialog
Hi is there any correct way to hide the day picker in a datepickerdialog? I'm using native android datepickerdialog not a custom datepickerdialog. Hope someone can help.
Below is my code for the datepickerdialog:
Button.OnClickListener…

Bryanleesh
- 83
- 8
0
votes
1 answer
DatePicker date set in android
I need a date-picker dialog in my application. First, I open the date picker dialog box and I select the date. The next time whenever open Date pickerDialog, the date of date picker should be current date of device. However, it shows last selected…

Mikin Patel
- 431
- 2
- 6
- 15
0
votes
2 answers
Integer.parseInt reformat string?
I'm building my custom application for Android. I have implemented a datepicker dialog which it takes time when a time is picked. The problem is that time picker doesn't format correctly what I select (for example if 03 is selected, datepicker…

user1377034
- 21
- 1
- 5
0
votes
1 answer
Updating a Dialog
I have a TextView on my Activity which is used to display a date. When the user clicks on the TextView I launch a DatePickerDialog like so:
public void onClick(View v) {
if (v.getId() == R.id.date_wrapper) {
showDialog(DATE_DIALOG_ID);
…

Andrew
- 20,756
- 32
- 99
- 177
0
votes
1 answer
how to put current date and day of week on DatePickerDialog
I've an app that uses the DatePickerDialog to set a date. If you change the date on the spinner i would like the date and day of week to be shown on the widget. This does happen when run on a samsung mini with 2.3.3. However when compiled on htc one…

turtleboy
- 8,210
- 27
- 100
- 199
0
votes
1 answer
Match DatePickerDialog button order to device locale on Android
The button order on all DatePickerDialog in my app isn't affected by the device's locale. If, for example, I change my locale to a right-to-left aligned language, such as Hebrew or Arabic, the button order on all other apps on my device…

Rony Rozen
- 3,957
- 4
- 24
- 46