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
4
votes
2 answers
Min date Max date not working in xamarin android
I'm using the xamarin android datepicker dialog fragment. but tried to enable date between today and toady + 3 days. It's not working. It's not even working for min date options only.
public static readonly string TAG = "X:" + typeof…

Balaji Marimuthu
- 1,940
- 13
- 13
4
votes
1 answer
Android error: Can't find ColorStateList from drawable resource while using dialogs
I'm trying to give a test to the new Android Material libraries but after hours and hours of investigate I can't figure out how to fix this problem.
The error happens when I try to open any kind of dialog.
This is the…

DarkerTV
- 191
- 5
4
votes
3 answers
Change DatePicker calendar size in Android programmatically
I'm doing an Android application and I have to show a DatePickerDialog. The fact is that the application will be on a device with a smart screen and the calendar doesn't fit in it. I would like the calendar to be smaller while keeping the same…

maloromano
- 51
- 1
- 5
4
votes
2 answers
How to Change the DatePickerDialog's Background Color from default White?
I am trying to set the Dark Theme Style for the DatePickerDialog in Android. As per Vikram's answer here, I don't want to set style in DatePickerDilog's Constructor.
I set the following styles & it's set but doesn't apply to OK & Cancel button's…

MilanG
- 2,551
- 16
- 24
4
votes
1 answer
Error inflating class android.widget.DatePicker on android version 7.0
I want to show popup date picker and i using this code
Calendar mcurrentDate = Calendar.getInstance();
int mYear = mcurrentDate.get(Calendar.YEAR);
int mMonth = mcurrentDate.get(Calendar.MONTH);
int mDay =…

Ishaq
- 41
- 6
4
votes
2 answers
Get Date object from DatePickerFragment in Android
I have defined DatePickerFragment in my android application, here is the code for it:
public class DatePickerFragment extends DialogFragment implements
DatePickerDialog.OnDateSetListener {
private int year;
private int month;
…

sums22
- 1,793
- 3
- 13
- 25
4
votes
1 answer
When to use DatePickerDialog over a DatePicker in a DialogFragment?
When should I use say a DatePickerDialog over a DatePicker widget inflated in a DialogFragment? I've always done it the second way and have no idea when/how to use the first method. The same question applies to other picker widgets like TimePicker…

Luke Casey
- 135
- 1
- 2
- 10
4
votes
0 answers
Date picker UI breaks randomly
I am opening Android date picker on a dialog using custom style.
This implementation is working as expected but sometime it displays unexpected UI.
Below is my code:
Style: