安卓开发timePicker的 MainActivity.this.hour = hour;这句话是什么意思,求详解timePicker.setOnTimeChangedListener( new OnTimeChangedListener() {public void onTimeChanged(TimePicker view,int hour,int minute) {MainActivity.this.hour = hour;
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 18:40:07
安卓开发timePicker的 MainActivity.this.hour = hour;这句话是什么意思,求详解timePicker.setOnTimeChangedListener( new OnTimeChangedListener() {public void onTimeChanged(TimePicker view,int hour,int minute) {MainActivity.this.hour = hour;
安卓开发timePicker的 MainActivity.this.hour = hour;这句话是什么意思,求详解
timePicker.setOnTimeChangedListener( new OnTimeChangedListener() {
public void onTimeChanged(TimePicker view,int hour,int minute) {
MainActivity.this.hour = hour;
MainActivity.this.minute= minute;
showDate(year,month,day,hour,minute);
}
});
安卓开发timePicker的 MainActivity.this.hour = hour;这句话是什么意思,求详解timePicker.setOnTimeChangedListener( new OnTimeChangedListener() {public void onTimeChanged(TimePicker view,int hour,int minute) {MainActivity.this.hour = hour;
在timepicker上按一下+或者按一下-,或者直接修改方框里的值,都将timepicker上的第一个方框的值保存到MainActivity的成员变量hour中,第二个方框的值保存到MainActivity的成员变量minute中.