时间选择器和日期选择器,滚动视图

it2022-05-05  141

简要记录,以后整理

TimePickerDialog dialog=new TimePickerDialog(context, AlertDialog.THEME_HOLO_LIGHT, new TimePickerDialog.OnTimeSetListener() { @Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { } },calendar.get(Calendar.HOUR_OF_DAY),calendar.get(Calendar.MINUTE),true); dialog.show(); DatePickerDialog dialog=new DatePickerDialog(context, AlertDialog.THEME_DEVICE_DEFAULT_DARK, new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { } },calendar.get(Calendar.YEAR),calendar.get(Calendar.MONTH),calendar.get(Calendar.HOUR_OF_DAY)); dialog.show();

加入我的行列:

(嘿嘿嘿,点击这里关于我哦,分享小知识):https://www.jianshu.com/p/7d19f0df5b6b


最新回复(0)