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

MaterialList efficiency problem #115

Open
MuhammadShaker opened this issue Jan 7, 2016 · 0 comments
Open

MaterialList efficiency problem #115

MuhammadShaker opened this issue Jan 7, 2016 · 0 comments

Comments

@MuhammadShaker
Copy link

You used a ViewHolder pattern but not in correct way, build function is called in onBindViewHolder (in MaterialListAdapter) and it uses findViewById many times which it is not a cheap operation.
I think you have to create two functions build which finds views and assigns it to references and called by onCreateViewHolder and bind which bind card's data to references and called by onBindViewHolder

@MuhammadShaker MuhammadShaker changed the title Martial list efficiency problem MaterialList efficiency problem Jan 11, 2016
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