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

android - questions about switching from C2DM to GCM -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -