Android里的TimePickerDialog里怎么加个秒的设置
1个回答
2015-03-30
展开全部
您好,很高兴能帮助您 private class DurationTimePickDialog extends TimePickerDialog { final OnTimeSetListener mCallback; TimePicker mTimePicker; final int increment; public DurationTimePickDialog(Context context, OnTimeSetListener callBack, int hourOfDay, int minute, boolean is24HourView, int increment) { super(context, callBack, hourOfDay, minute/increment, is24HourView); this.mCallback = callBack; this.increment = increment; } @Override public void onClick(DialogInterface dialog, int which) { if (mCallback != null && mTimePicker!=null) { mTimePicker.clearFocus(); mCallback.onTimeSet(mTimePick...
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询