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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -