TimePicker Dialog from clicking EditText

前端 未结 9 1187
北海茫月
北海茫月 2020-11-30 20:16

I\'ve already got a DatePicker which pops up when the user clicks on the EditText field

eReminderDate.setOnClickListener(new OnClickListener() {

                    


        
9条回答
  •  抹茶落季
    2020-11-30 21:19

    You have not put the last argument in the TimePickerDialog.

    {
    public TimePickerDialog(Context context, OnTimeSetListener listener, int hourOfDay, int minute,
                boolean is24HourView) {
            this(context, 0, listener, hourOfDay, minute, is24HourView);
        }
    }
    

    this is the code of the TimePickerclass. it requires a boolean argument is24HourView

提交回复
热议问题