title: Prevent parent from getting touch events only for certain views?
body: <p>I have a <code>ScrollView</code> and linear layout inside it. Inside the linear layout i have multiple views. One of the multiple views (DrawView lets say)is used to draw stuff so i have to override <code>onTouchEvent</code> of that method and draw things. Currently when i drag or move  on the <code>DrawView</code>, the <code>ScrollView</code> also handles the touch leading the entire view moving. What i want is that when i touch the <code>DrawView</code> , the scroll view should not move . I went through some of these answers here</p>
  
  <p><a href="https://stackoverflow.com/questions/30966412/how-to-vary-between-child-and-parent-view-group-touch-events">How to vary between child and parent view group touch events</a></p>
  
  <p>but i did not find anything that i can add in <code>DrawView</code> which will prevent the <code>ScrollView</code> from moving up and down. Note that <code>DrawView</code> does not extend <code>ViewGroup</code> so i don't have access to <a href="https://developer.android.com/reference/android/view/ViewGroup#requestDisallowInterceptTouchEvent(boolean)" rel="nofollow noreferrer">requestDisallowInterceptTouchEvent</a></p>