Android : DatePicker is setting the value even I touch outside of the DatePicker

前端 未结 1 1833
一向
一向 2021-01-22 15:08

I have one TextView and when I touch the TextView it will call the Date and TimePicker. First I\'am showing the DatePicker and Once I have selected date then I can set the value

相关标签:
1条回答
  • 2021-01-22 15:39
    DatePickerDialog dpd = new DatePickerDialog(context,
                    mDateSetListener, myear, mmonth, mday);
    dpd.setCanceledOnTouchOutside(true);
    

    Docs here

    0 讨论(0)
提交回复
热议问题