dotnet / dotnet/android-libraries
MaterialDesign DatePicker uses Java.Lang.Object
- Dominant language
- C#
- Stars
- 317
- Forks
- 73
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 17
Description
### Version Information
- Visual Studio version 16.8.5:
- Xamarin.Android version 11.1.0.26:
- Using AndroidX or Support Libraries: AndroidX
### Describe your Issue:
MaterialDialog SetSelection, IMaterialPickerOnPositiveButtonClickListener and probably other parts of the Material dialog have Java.Lang.Object as an argument. It would be nice that it included stronger typings or even take System.DateTime.
Apparently, the original MaterialDatePicker accepts a generic. I believe the Xamarin Android Binding process doesn't handle generics very well and it has to be done by hand but I'm not sure.
https://github.com/material-components/material-components-android/blob/fb96aa859288f22fc6d0c88c28ba7826caae5175/lib/java/com/google/android/material/datepicker/MaterialDatePicker.java#L62
### Steps to Reproduce (with link to sample solution if possible):
### Include any relevant Exception Stack traces, build logs, adb logs:
Contributor guide
Assessment
This issue has not been assessed yet.