Skip to content

Instantly share code, notes, and snippets.

@EbenezerGH
Created September 12, 2019 16:20
Show Gist options
  • Save EbenezerGH/fb25892ec32a37231c5c8fc5841aa8fb to your computer and use it in GitHub Desktop.
Save EbenezerGH/fb25892ec32a37231c5c8fc5841aa8fb to your computer and use it in GitHub Desktop.
fun autoScroll() {
val handler = Handler()
val runnable = object : Runnable {
override fun run() {
scrollBy(2, 0)
handler.postDelayed(this, 0)
}
}
handler.postDelayed(runnable, 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment