作者:qgd2013_184 | 来源:互联网 | 2023-09-08 10:42
***Triestoclaimtheuser‘sdragmotion,andrequestsdisallowingany*ancestorsfromstealingeventsin
/**
* 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);
}
}
自定义双向seekbar中横向滑动和scrollview的滑动冲突