milosmns / actual-number-picker

Android: A horizontal number picker
GNU General Public License v3.0
222 stars 36 forks source link

how to handle onValueChanged while using multiple ActualNumberPicker! #3

Open LOG-TAG opened 8 years ago

LOG-TAG commented 8 years ago

we can't handle onValueChanged while using multiple ActualNumberPicker! adding tag some thing to listener will help !!

Awesome library thanks !!

milosmns commented 8 years ago

Good point. Does having a View reference work for you?

On Tue, Jul 26, 2016, 07:46 Subrahmanya S M notifications@github.com wrote:

we can't handle onValueChanged while using multiple ActualNumberPicker! adding tag some thing to listener will help !!

Awesome library thanks !!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/milosmns/actual-number-picker/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsJiikfWI0wNqpRYuuf0ZzjDl1iXf2sks5qZZ9LgaJpZM4JUziw .

milosmns commented 7 years ago

I'll add the View reference to the listener interface. Pending for v2.0

fsocko commented 6 years ago

In the meantime, you can create new listeners for each slider, for example as an inner class in your view code. Then you can set the listener of each slider to these new listeners.