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

OnSeekBarChangeListener not supported yet #163

Open
SudoDios opened this issue Mar 12, 2021 · 8 comments
Open

OnSeekBarChangeListener not supported yet #163

SudoDios opened this issue Mar 12, 2021 · 8 comments

Comments

@SudoDios
Copy link

SudoDios commented Mar 12, 2021

Hello developer.
in ColorPickerSeekBars not supported (OnSeekBarChangeListener)
throw IllegalStateException("Custom OnSeekBarChangeListener not supported yet")

@SudoDios
Copy link
Author

how to get callback from RGBColorPickerSeekBar ????

@SudoDios
Copy link
Author

Sorry
I learned

@smelfungus
Copy link
Member

Hello, @SudoDios!
You can get individual per-channel callbacks for RGBColorPickerSeekBar via addListener(...) or you can use RGBColorPickerSeekBarSet and get callbacks for multiple channels via ColorPickerSeekBarSet.pickerGroup.addListener(...):

Sample 1
Sample 2

Feel free to report any additional issues!

@SudoDios
Copy link
Author

Thank you

@SudoDios
Copy link
Author

Sorry
how to set tint for thumb seekbars with white center?

@smelfungus
Copy link
Member

@SudoDios that's not supported for now, but I've added this idea to a shortlist 👍🏻

@SudoDios
Copy link
Author

Thank you ❤

@meet2602
Copy link

meet2602 commented Feb 7, 2023

 mainBinding.hueSeekBar.addListener(object : OnSeekBarChangeListener,
            ColorSeekBar.OnColorPickListener<ColorSeekBar<IntegerHSLColor>, IntegerHSLColor> {
            override fun onColorChanged(
                picker: ColorSeekBar<IntegerHSLColor>,
                color: IntegerHSLColor,
                value: Int,
            ) {
             
            }

            override fun onColorPicked(
                picker: ColorSeekBar<IntegerHSLColor>,
                color: IntegerHSLColor,
                value: Int,
                fromUser: Boolean,
            ) {

            }

            override fun onColorPicking(
                picker: ColorSeekBar<IntegerHSLColor>,
                color: IntegerHSLColor,
                value: Int,
                fromUser: Boolean,
            ) {

            }

            override fun onProgressChanged(p0: SeekBar?, p1: Int, p2: Boolean) {
            }

            override fun onStartTrackingTouch(p0: SeekBar?) {

            }

            override fun onStopTrackingTouch(p0: SeekBar?) {

            }

        })

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

3 participants