/**
* Tries to claim the user‘s drag motion, and requests disallowing any
* ancestors from stealing events in the drag.
*
* 试图告诉父view不要拦截子控件的drag
*/
private void attemptClaimDrag() {
if (getParent() != null) {
getParent().requestDisallowInterceptTouchEvent(true);
}
}
时间: 2024-10-05 21:07:53