java - Android - Scrollable TextView with OnClickListener -


i have scrollable textview onclicklistener attached it.

textview.setonclicklistener( new onclicklistener() {                 @override                 public void onclick(view v) {                     //dostuff();                 }             }); 

the problem if scroll text, lift finger off view triggers onclicklistener. way doesn't happen if scroll , move off view before lift finger, , can't tell users :p

so question is, there way determine between click , scroll or way use ontouchlistener , decide myself if scroll or click?

use ontouchlistener , handle on_down , on_move instead of using onclick.


Comments

Popular posts from this blog

Java sticky instances of class com.mysql.jdbc.Field aggregating -