Time picker dialog shows circular timings by default to select date and time. Instead of it Need to show keyboard entry by default to select date and 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 Time picker dialog with manual(keyboard) entry by default in supporting devices ?

The time picker can be started in text input mode with:
MaterialTimePicker.Builder().setInputMode(INPUT_MODE_KEYBOARD)
For example:
val picker =
MaterialTimePicker.Builder()
.setTitleText(R.string.Set_time)
.setTimeFormat(TimeFormat.CLOCK_12H)
.setHour(12)
.setMinute(30)
.setInputMode(MaterialTimePicker.INPUT_MODE_KEYBOARD)
.build()
picker.show(supportFragmentManager, "TimePicker")
Source: https://material.io/components/time-pickers/android#using-time-pickers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With