3

For a custom layout, I need to monitor TouchEvents using the onInterceptTouchEvent method of the ViewGroup. I have the following layout inside a ViewGroup.

<RelativeLayout
   ...
   ...
   ...
    <TextView>
   ...
    <ImageView>
   ...
    <WebView>
   ...
   ...
RelativeLayout>

I am facing problem with monitoring events when the touch is over the TextView. It seems TextView is consuming the event. I do see the first MotionEvent.ACTION_DOWN event in onInterceptTouchEvent method, but subsequent MotionEvent.ACTION_MOVE & MotionEvent.ACTION_UP are not received.

TextView is only showing static text content. What could be at play here and is there a way to ensure that the TextView does not consume the touch event ?

0 Answers0