android-libraries: [Material] Slider.addOnChangeListener binding missing
Version Information
- Visual Studio version (eg. 16.8 or 8.8): 16.8.3
- Xamarin.Android version (eg. 11.1): 11.1
- Using AndroidX or Support Libraries: Xamarin.Google.Android.Material 1.2.1.1
Describe your Issue:
Slider.IOnChangeListener is bound, but there is no way to add it to the Slider class, the addOnChangeListener method hasn’t been bound
Steps to Reproduce (with link to sample solution if possible):
var slider = FindViewById<Google.Android.Material.Slider>(Resource.Id.my_slider);
slider.addOnChangeListener(listener); // compile error
slider.Change += Slider_Changed; // compile error
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 7
- Comments: 23 (4 by maintainers)
This is a workaround until they fix binding issue:
With the latest Nuget packages, this warning now also shows the deprecation warning:
While this type is 'public', Google considers it internal API and reserves the right to modify or delete it in the future. Use at your own riskWhen trying to use the non-deprecated
Slider.IOnChangeListenerclass (which inherits fromIBaseOnChangeListener) it leads to other errors:It really would be appreciated if some working workaround could be provided by the bindings, without having to implement it by ourselves that causes build warnings
workaround:
Sadly, this issue is still present with 1.4.0
Still same with “1.8.0” version. Any progress ? <PackageReference Include="Xamarin.Google.Android.Material" Version="1.8.0" />