KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is it crucial for performance to have ViewHolder as static in a ViewHolder pattern ? A ViewHolder object stores each of the component views inside the tag field of the Layout, so you can immediately access them without the need to look them up repeatedly. First, you need to create a class to hold your exact set of views. For example: static class ViewHolder { TextView text; TextView timestamp; ImageView icon; ProgressBar progress; int position; }
Tags (comma-separated)
Save Edits
Cancel