You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Would it be possible to create a wrapper? I did something similar for some bindings I'm trying to do with Afollestad Material Dialogs. I created a partial class in the Additions Folder that called the functions with the strongly typed parameters. This way you have full controll how you want to work. Then in Metadata.xml it is possible to make the not strongly typed function internal I believe (if need be)? For the sake of simplicity, instead of creating a generic class it can be done so that it supports System.DateTime only.
Version Information
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:
The text was updated successfully, but these errors were encountered: