From the research i have done on stackoverflow as well as here, here, and here, the agreedupon solution seems to be something like this. If you dont want your onclick to be triggered on any view click. However, from the ontouch event handler i have to return either true or false. You can return the value as follows function fntabchangesindex some condition and code here as per logic return somevalue. How touch events are delivered in android suragch medium. You can implement an onclicklistener via ontouchlistener. The activitys dispatchtouchevent is notified of a touch event. You can try using the onclientclick method, if you return a false it will stop the postback. The begin of the touch event is from activitys dispatchtouchevent, then passed to viewgroup dispatchtouchevent, if viewgroups onintercepttouchevent is false, the touch event passed to child views, call child views dispatchtouchevent, in function dispatchtouchevent. To perform this return false in your ontouch like this. Lets say, in an android app, we want to have the ability to temporarily and reliably ignore all user touches at any moment. Help to translate the content of this tutorial to your language. I want to keep it simple so i didnt assign the dispatchtouchevent to any view and let activity to call this method.