Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddOnChangeListener or equivalent missing from binding on Slider. #785

Closed
Zintom opened this issue Sep 14, 2023 · 2 comments
Closed

AddOnChangeListener or equivalent missing from binding on Slider. #785

Zintom opened this issue Sep 14, 2023 · 2 comments

Comments

@Zintom
Copy link

Zintom commented Sep 14, 2023

Android application type

.NET Android: net7.0-android, 33.0

Description

I am trying to register a callback for when the value of a Google.Android.Slider changes, in Java I would call addOnChangeListener, but the binding for this in C# does not exist.

Weirdly the binding for ClearOnChangeListeners does exist 🤷‍♂️.

Is there any insight on this?

Steps to Reproduce

Create a new Slider: var slider = new Google.Android.Slider().
Look for relevant AddOnChangeListener method.

Did you find any workaround?

Subscribing to the LayoutChange event allows one to read the Value property when the slider is dragged.

Relevant log output

No response

@jpobst
Copy link
Contributor

jpobst commented Sep 14, 2023

Looks like this class is part of the Google Material library. Moving to AndroidX repository.

@jpobst jpobst transferred this issue from dotnet/android Sep 14, 2023
@jpobst jpobst removed their assignment Sep 14, 2023
@jpobst
Copy link
Contributor

jpobst commented Sep 14, 2023

Duplicate of #230.

@jpobst jpobst closed this as not planned Won't fix, can't repro, duplicate, stale Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants