Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果多个接口监听下拉事件,放手刷新事件就完美了。 #47

Open
commonslok opened this issue Jul 20, 2016 · 2 comments

Comments

@commonslok
Copy link

如果多个接口监听下拉事件,放手刷新事件就完美了。

@Frank-Zhu
Copy link
Owner

过段时间我会处理的,这一段时间太忙了,在做一个基础库。

@commonslok
Copy link
Author

我按自己的需求实现了,
public void setOnChangedListener(OnChangedListener onChangedListener) {
this.mOnChangedListener = onChangedListener;
}

OnChangedListener mOnChangedListener;

public interface OnChangedListener {
void smoothScrollToTop();
}@OverRide
protected void smoothScrollToTop() {
Log.d(TAG, "smoothScrollToTop --> ");
mScalingRunnable.startAnimation(200L);
if (5 <= Math.abs(mNewScrollValue)) {//松手时下拉距离超过5才去触发接口
mOnChangedListener.smoothScrollToTop();
}
}mNewScrollValue值在pullHeaderToZoom(int newScrollValue)参数newScrollValue获取。
多谢楼主的库,很好用。

[email protected]

发件人: 祝文武
发送时间: 2016-07-22 09:55
收件人: Frank-Zhu/PullZoomView
抄送: commonslok; Author
主题: Re: [Frank-Zhu/PullZoomView] 如果多个接口监听下拉事件,放手刷新事件就完美了。 (#47)
过段时间我会处理的,这一段时间太忙了,在做一个基础库。

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants