AndroidTagView
AndroidTagView copied to clipboard
stop handle all touches
TagContainerLayout View always handle all touches, even if it doesn't capture any child view. i suggest to change 467 line to this:
return mViewDragHelper.findTopChildUnder((int) event.getX(), (int) event.getY()) != null;
full method will be like:
@Override
public boolean onTouchEvent(MotionEvent event) {
mViewDragHelper.processTouchEvent(event);
if (event.getActionMasked() == MotionEvent.ACTION_DOWN)
// we don't need to handle TouchEvent if it doesn't touch child view
return mViewDragHelper.findTopChildUnder((int) event.getX(), (int) event.getY()) != null;
else
return true;
}
please try this code or any other code. thanks.
Or may this method does the job:
@Override
public boolean onTouchEvent(MotionEvent event) {
return mViewDragHelper.shouldInterceptTouchEvent(event);
}
Ok, I will try this. Thanks!
2017-09-21 17:04 GMT+08:00 Anas Altair [email protected]:
Or may this method does the job:
@Overridepublic boolean onTouchEvent(MotionEvent event) { return mViewDragHelper.shouldInterceptTouchEvent(event); }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/whilu/AndroidTagView/issues/64#issuecomment-331097424, or mute the thread https://github.com/notifications/unsubscribe-auth/AGkeW5UF3xqjZ5trWn2SrjZAPZpXsgxFks5skiaigaJpZM4PfAaJ .