写法不同的问题
老师,对话框显示时间我是这样写的
timePicker.setOnTimeChangedListener(new TimePicker.OnTimeChangedListener() {//按照视频里的写报错
@Override
public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
setTitle(hourOfDay+":"+minute);
}
});