80,351
社区成员
发帖
与我相关
我的任务
分享
protected synchronized void tbs_onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY, View view) {
if (!isClampedY && clampedY&¤tDeltaY<-10) {
this.reload();
}
if (clampedY) {
this.isClampedY = true;
} else {
this.isClampedY = false;
}
super_onOverScrolled(scrollX, scrollY, clampedX, clampedY);
}
protected void tbs_computeScroll(View view) {
super_computeScroll();
}
private int currentDeltaY = 0;
protected synchronized boolean tbs_overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX,
int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent, View view) {
currentDeltaY = deltaY;
return super_overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY, maxOverScrollX,
maxOverScrollY, isTouchEvent);
}
public void setTitle(TextView title) {
this.title = title;
}
protected boolean tbs_onTouchEvent(MotionEvent event, View view) {
if (getContext() instanceof TbsWebActivity ||getContext() instanceof MainActivity) {
if (event.getAction() == MotionEvent.ACTION_UP) {
this.isClampedY = false;
this.layout(this.getLeft(), 0, this.getRight(), this.getBottom());
}
}
return super_onTouchEvent(event);
}