How to change my spinner date picker to normal calendar with an option to keyboard entry as shown in the attached picture
Here is the code.
private val datePickerDialog by lazy {
DatePickerDialog(requireActivity(), R.style.SpinnerDatePickerDialog).apply {
setTitle(R.string.select_date)
datePicker.maxDate = LocalDate.now().minusDays(1).toMillis()
setOnDateSetListener { _, year, month, dayOfMonth ->
viewModel.onDateSelected(year, month, dayOfMonth)
}
}
}

