How to achieve on first click listener in android? -


i have customview , want set onclick called on first click. in want start thread start counter on other textview , simple onclicklistener each click new threads starts problem . how can achieve such task ?

another option in onclick() method set null listener, i.e.

@override public void onclick(view view) {     // disable other clicks on     customview.setonclicklistener(null);     ... } 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -