OnDateChangedListener中onDateChanged方法内打印日志为什么都是两次?
datePicker.init(year, cal.get(Calendar.MONTH), day, new DatePicker.OnDateChangedListener() {
@Override
public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
Log.i("tag", "======" + year + "-" + (monthOfYear + 1) + "-" + dayOfMonth);
}
});
这边每一次监听到,打印日志都是两次