Questions tagged [timepickerdialog]

55 questions
1
vote
2 answers

flutter TimePickerDialog get selected Time -

how can I get the selected time of TimePickerDialog in Flutter? I dont want to use showDialog because I want to add some other buttons below the TimePickerDialog. When it is not possible to use the TimePickerDialog then what would be the way to do…
otto
  • 1,815
  • 7
  • 37
  • 63
1
vote
1 answer

Is there a less verbose way to get a DatePickerDialog's value?

I'm currently trying to implement DatePickerDialog and TimePickerDialog, and found out that it's quite verbose to get their values. Like you have to preemptively declare a couple of variables that have to be set on onDateSet and onTimeSet. I thought…
1
vote
1 answer

How to show time picker dialog with keyboard entry by default?

I Need to show keyboard entry by default to select time. While showing time picker dialog in circular style, it has keyboard icon to change circular style to manual entry style. This feature is available from Android Oreo OS devices. How to show…
SARATH V
  • 500
  • 1
  • 7
  • 33
1
vote
1 answer

Why does accessing TextView from within onTimeSet() function produces a runtime error?

I've just started learning Android development using Kotlin and ran into this error. I followed this guide to create some basic time and date picker dialogues which are triggered through their respective button presses. Here is a code snippet of the…
1
vote
0 answers

AM/PM text broken in TimePickerDialog

I've been working on an android APP and everything was working great and AM PM text in TimePickerDialog was showing just fine (as AM PM obviously), until I changed the default font face using fontFamily in theme and now the AM PM text is broken. Now…
Rathore
  • 256
  • 4
  • 9
1
vote
2 answers

How can i save the hourOfDay and minutes from timePickerDialog to compare it with some other variable?

I want to get hourOfDay and minutes from TimePickerDialog inputted by the user but the values are shown zero out of the onTimeSet method. LoadTime.setOnClickListener(new View.OnClickListener() { @Override public void…
Emon
  • 63
  • 9
1
vote
0 answers

How to set TimePickerDialog from 9AM to 4PM

I have a school based android application and it has using TimePickerDialog. In DatePickerDialog there have an option for setMinDate and setMaxDate. datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000); …
Arya
  • 1,729
  • 3
  • 17
  • 35
1
vote
1 answer

Xamarin Timepicker disable positive button

Community, for quite some time now i've been trying to disable the positive Button of a TimePicker in Xamarin until the user picked a valid time. I figured that i'll have to use a custom renderer to archive this. At the moment I'm trying to get it…
1
vote
1 answer

Cannot resolve constructor when using TimePickerDialog.OnTimeSetListener

I am using the same method for my time picker as I am for my date picker. My date is working perfecty fine, but the time dialog keeps showing me an error. I have looked into similar issues, but nobody has been in a relatable situation. This is the…
ItsMeElvis
  • 21
  • 5
1
vote
1 answer

Wrong time selected with timepickerdialog

I am using below code for getting time from user. Everything is working fine except if user select 15 in 24 hours format view, final output comes at 3 AM, and vice versa. I read many blogs but did not get clear solution to sort. Can someone…
Panache
  • 1,701
  • 3
  • 19
  • 33
1
vote
0 answers

Disable previous time if min time set in android RangeTimePickerDialog Marshmallow

I want to disable previous times. The user shouldn't be able to click on previous times. I have used a normal TimePickerDialog but it didn't help. After a lots of R&D, I got RangeTimePickerDialog code to implement range factor but it still doesn't…
1
vote
2 answers

How to use time-picker dialog for other uses?

I am currently trying to make a dial style alert dialog to pick numbers within a certain range. I have come across using the time picker dialog to create the dial effect, but I noticed the dialog would need has to pass the HourOfDay and…
1
vote
2 answers

Getting Time Display in EditText of TimePickerDialog in Android

I'm using a TimePickerDialog in my application, I use a hint for the EditText (through which time is set), but once the user sets time in the TimePickerDialog the hint goes away and the time selected replaces it. I want the present time (hour and…
Yousef
  • 54
  • 4
1
vote
1 answer

How to set up the TimePickerDialog that pop up on button click?

I have been trying to set up a time picker dialog where user can select the time, then save and pass the time as string to next activity. I follow some tutorial and successfully set up the DatePickerDialog, but I am stuck at getting the Time Picker…
1
vote
2 answers

How to get "AM" or "PM" in "TimePickerDialog"

How to get "AM" or "PM" ? I have saw the functions that the TimePicker has,but I did't find any answer. TimePickerDialog mTimePicker = new TimePickerDialog(EditEventActivity.this, new TimePickerDialog.OnTimeSetListener() { …
zys
  • 1,306
  • 3
  • 18
  • 37