how to pick a time using material:1.3.0-alpha01, I am looking time picker following screenshot, which I found in material io.
I tried date picker is working
M
To use MATERIAL TIME PICKER, add the following dependency to your project's build.gradle file:
implementation 'com.google.android.material:material:1.3.0-alpha02'
Kotlin time picker using material:1.3.0-alpha02
val timePickerDialog = MaterialTimePicker.newInstance();
timePickerDialog.show(requireActivity().supportFragmentManager, "fragment_tag");
// Types of formats for the time pickeer
timePickerDialog.setTimeFormat(TimeFormat.CLOCK_12H)//CLOCK_24H
timePickerDialog.setListener { dialog: MaterialTimePicker ->
val newHour = dialog.hour
val newMinute = dialog.minute
}