-
-
Save jezinka/9e0b96d5c152daded786ef86399f6f36 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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