Or maybe someone will advise custom dialogue, where is this possible?

    2 answers 2

    Sorts are mostly open. See how the dialogue is arranged inside - DatePickerDialog.java .

    By code, we understand that we simply use the DatePicker, which consists of three NumberPickers. And for his customization on Habré an article was written .

    Total we have the following ways. Just write a successor to DatePickerDialog (or copy its content and make your own), in which we simply forbid clicking "OK" if the date is "incorrect" (override the onClick method). If you need deeper - then the DatePicker is based on your custom multicolored NumberPicker.

      If you do not want to customize, keep this:

      Learn Android Here- Picker Dialog