new DatePickerDialog(this, new OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int month, int day) {
// TODO Auto-generated method stub
setTitle(year + "-" + (month + 1) + "-" + day);
}
}, year, month, day).show(); //!!!!!!!注意是显示在外头,没有加控件,所以要show。
DatePickerDialog 时间设置对话框
最新推荐文章于 2021-05-26 00:03:22 发布