You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
MuhammadShaker
changed the title
Martial list efficiency problem
MaterialList efficiency problem
Jan 11, 2016
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
The text was updated successfully, but these errors were encountered: