Created
September 12, 2019 16:20
-
-
Save EbenezerGH/fb25892ec32a37231c5c8fc5841aa8fb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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