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

在一个可滚动的RecyclerView中,设置会导致卡顿 #8

Open
GMF018 opened this issue Apr 7, 2020 · 1 comment
Open

在一个可滚动的RecyclerView中,设置会导致卡顿 #8

GMF018 opened this issue Apr 7, 2020 · 1 comment

Comments

@GMF018
Copy link

GMF018 commented Apr 7, 2020

No description provided.

@Liberuman
Copy link
Owner

@GMF018 示例中用的就是RecyclerView, 没有出现卡顿问题。如果你的RecyclerView中的Item宽高一致,可以考虑复用同一个ShadowDrawable以进行优化。具体创建ShadowDrawable对象可查看setShadowDrawable方法的实现。

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