I have two EditText. First, use to open DatePicker, and the second use to open TimePicker. I have created DialogFragment for two-component. Both works.All in the Fragment.