I am using material date picker in my andorid project in fragment. On specific click, I want to show user the date dialog but on click nothing is showing.
Here is my code:
I am expecting that user select two date range and I get those date
I am using material date picker in my andorid project in fragment. On specific click, I want to show user the date dialog but on click nothing is showing.
Here is my code:
I am expecting that user select two date range and I get those date

There could be several reasons why this might be happening. Here are some things to check:
Button Click Listener: Ensure that you have properly set up the click listener for the button that triggers the date picker dialog. Make sure you're assigning the calendarView() function to the button's setOnClickListener() method.
here is an example // Inside your fragment class
ormattedStartDate until $formattedEndDate" } materialDatePicker.show(requireFragmentManager(), materialDatePicker.toString()) }
Make sure your fragment layout XML file contains a button with the ID button_date_picker. If all these steps are correct and the issue still persists, you might want to provide more details.