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

配合SwipeRefreshLayout使用会出现卡顿 #13

Closed
gentlemanyc opened this issue Jul 14, 2017 · 1 comment
Closed

配合SwipeRefreshLayout使用会出现卡顿 #13

gentlemanyc opened this issue Jul 14, 2017 · 1 comment

Comments

@gentlemanyc
Copy link

下层布局如果是SwipeRefreshLayout+recyclerview,当下拉刷新完成之后,再滑动列表会出现卡顿丢帧

@gentlemanyc
Copy link
Author

gentlemanyc commented Jul 14, 2017

问题已经解决,在SwipeRefreshLayout源码中
private void createProgressView() { mCircleView = new CircleImageView(getContext(), CIRCLE_BG_LIGHT); mProgress = new MaterialProgressDrawable(getContext(), this); mProgress.setBackgroundColor(CIRCLE_BG_LIGHT); mCircleView.setImageDrawable(mProgress); mCircleView.setVisibility(View.GONE); addView(mCircleView); }
将mProgress = new MaterialProgressDrawable(getContext(), this);改成mProgress = new MaterialProgressDrawable(getContext(), mCircleView );即可解决。

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

1 participant