Is there anyway to use the timepicker as timer … like if the user picks 1hour 30mins on the timepicker it will set the alarm one hour 30 mins from now and not at like 1.30am in the morning? also is there anyway of getting rid of the timepicker title?
Share
The
TimePickerdisplays times, not quantities. You could interpret the time in this way, if you really wanted, but it wouldn’t be very useful if the user wanted to set the alarm, say, 25 hours from now.I would suggest you implement your own
Viewinstead (or Google search for one that has already been made).If you mean the
TimePickerDialog, then yes. You can callsetTitle(CharSequence title).Edit:
In a comment, you asked,
Take a look at the source code and you’ll find that the
onTimeChangedmethod will update the title like this by default. To prevent the title from being updated, you’ll need to implement aTimePickerDialog.OnTimeSetListener,Then pass this listener to the constructor when you instantiate the
TimePickerDialog.