Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

SeekBar individual listeners #351

Open
dream-1ab opened this issue Feb 25, 2018 · 2 comments
Open

SeekBar individual listeners #351

dream-1ab opened this issue Feb 25, 2018 · 2 comments

Comments

@dream-1ab
Copy link

dream-1ab commented Feb 25, 2018

        SeekBar.onSeek {
            //optional use
            onProgressChanged { seekBar, progress, fromUser ->

            }
            //optional use
            onStartTrackingTouch {

            }
            //optional use
            onStopTrackingTouch {

            }
        }
@dovahkiin98
Copy link

the

button.onClick { }

isn't a big difference to be honest
I've already suggested a PR for the EditText, tho now it's in TextView form.
The Seekbar one is new, but maybe there can be more extensions.

@JakeWharton
Copy link
Contributor

There's already a PR for seekbar as well. Perhaps we should codify a pattern for multi-callback listeners.

@JakeWharton JakeWharton changed the title Button, SeekBar, EditText ... extensions SeekBar individual listeners Mar 7, 2018
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

3 participants