自定义双向seekbar中横向滑动和scrollview的滑动冲突

时间:2015-08-28 23:27:16   收藏:0   阅读:555

/**

* 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);

}

}


原文:http://my.oschina.net/yuanxulong/blog/498858

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!