There are two edit text ::
Onclick of edittext timepicker
For opening Time Pcker Dialog you have to put one Button OR You should use one EditText so you can write on click event of Button or EditText...
You can find example here.