Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

How to add setOnSeekBarChangeListener #440

Open
abunayem opened this issue Jul 30, 2017 · 1 comment
Open

How to add setOnSeekBarChangeListener #440

abunayem opened this issue Jul 30, 2017 · 1 comment

Comments

@abunayem
Copy link

How can i add setOnSeekBarChangeListener in slider/seekbar? there is no method to call.

@mgeissen
Copy link

mgeissen commented Feb 21, 2018

Material Slider dosen't inherit from Seekbar. Use setOnPositionChangeListener instead.

slider.setOnPositionChangeListener(new Slider.OnPositionChangeListener() {
            @Override
            public void onPositionChanged(Slider view, boolean fromUser, float oldPos, float newPos, int oldValue, int newValue) {

            }
        });

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants