title: OnTouch() & onClick() Events for a VIew within a ScrollView
body: <p>I am Having a 10 Image Views Inside a Scroll View </p>
  
  <p>once the Image is clicked I want to perform an action </p>
  
  <p>But when I am trying to scroll the Imags in the ScrollView Touch_down and Touch_UP together are considered as a click </p>
  
  <p>Help me out 
  I know the solution is easy 
  But I think I am missing some Logic</p>
  
  <p>I am Putting My Code Here</p>
  
  <pre><code>  public class CustomScrollView extends ScrollView {
  
      public CustomScrollView(Context context) {
          super(context);
      }
  
      public CustomScrollView(Context context, AttributeSet attrs) {
              super(context, attrs);
          }
  
      public CustomScrollView(Context context, AttributeSet attrs, int defStyle) {
              super(context, attrs, defStyle);
          }
  
      @Override
      public boolean onInterceptTouchEvent(MotionEvent ev) {
          return false;
  
      }
  
      @Override
      public boolean onTouchEvent(MotionEvent p_event) {
          if (p_event.getAction() == MotionEvent.ACTION_MOVE &amp;&amp; getParent() != null) {
              getParent().requestDisallowInterceptTouchEvent(true);
          }
          return super.onTouchEvent(p_event);
      }
   }
  </code></pre>
  
  <p>In this ScrollView I have added an ImageView </p>