Challenge:ChanImplementing response type of DialogFragment

I worked very hard to complete this challenge. I referred to the book’s knowledge and tips, as well as the related API, but I didn’t know much about sending back the information.Is any help?

I have another question. I wrote the width of the DatePicker component in macth_parent in dialog_date.xml, but why does the runtime have a small width and many numbers on the calendar stack together?

maybe you can try use wrap_content not match_parent