title: How can i get both OnClick and OnTouch Listeners
body: <p>I am in a position to implement different actions for <code>OnClick</code> and <code>OnTouch</code> listeners for an <code>ImageView</code>.I have referred several links in stackoverflow but couldn't achieve my goal. 
  how can I implement this.I've referred</p>
  
  <p><a href="https://stackoverflow.com/questions/19538747/how-to-use-both-ontouch-and-onclick-for-an-imagebutton">how to use both Ontouch and Onclick for an ImageButton?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7387572/android-ontouch-with-onclick-and-onlongclick">Android onTouch with onClick and onLongClick</a></p>
  
  <p><a href="https://stackoverflow.com/questions/5159366/cant-handle-both-click-and-touch-events-simultaneously">Can't handle both click and touch events simultaneously</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6553253/ontouch-onclick-listeners-use-both">OnTouch/OnClick listeners. Use both?</a></p>
  
  <p>actually my context was when i click on imageview it will goto other activity and when i swipe on it it has to liked by the user.
  any help.</p>