Android DatePickerDialog

Is it possible to disable DatePickerDialog after clicking the set button?

+3
source share
2 answers

Add an OnClickListener button for the dialog button and override onClick.

0
source

It would be easier to create your own dialog that uses the DatePicker widget. You can find an example of using the DatePicker widget in the sdk folder in the section:

ApiDemos/src/com/example/android/apis/view/DateWidgets1.java 
ApiDemos/src/com/example/android/apis/view/DateWidgets2.java 

Then you can put any buttons and actions that you want to use to select a date.

0
source

Source: https://habr.com/ru/post/1742713/


All Articles