为什么我拖动左边时间onDateChanged会执行两次,点击右边就只执行一次
dp.init(year, mounth, day, new DatePicker.OnDateChangedListener() {
@Override
public void onDateChanged(DatePicker datePicker, int i, int i1, int i2) {
Ytext = i + "-" + (i1 + 1) + "-" + i2;
// setTitle( year + "-" + mounth + "-" + day + "-" + hour + ":" + mimute);
Log.d("tag",Ytext);
a++;
Log.d("aaaa",a + "");
}