Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ANKO library
- //Add it to gradle - implementation 'org.jetbrains.anko:anko-common:0.9'
- button.setOnClickListener {
- doAsync {
- for(i in 1..15) {
- Thread.sleep(2000)
- activityUiThread {
- textView2.text = i.toString()
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement