Skip to content

Instantly share code, notes, and snippets.

@jezinka
Last active Jul 24, 2017
Embed
What would you like to do?
seekBar.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
override fun onStartTrackingTouch(p0: SeekBar?) {
}
override fun onStopTrackingTouch(p0: SeekBar?) {
if (p0 != null) {
fernView.n = (p0.progress / 100.0 * MAX).toInt()
fernView.requestLayout()
}
}
override fun onProgressChanged(p0: SeekBar?, p1: Int, p2: Boolean) {
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment