Open RZpowelldev opened 9 years ago
Seems odd to me as well...it's usually used for listviews or gridviews where you have to recycle views. For fragment layout view lookups, I've usually use Butterknife's @InjectView to simplify the boilerplate instead...
Using ViewHolders in Fragments doesn't seen to make sense. The ViewHolder pattern simplifies view reference lookups when constructing multiple similar views such as in a ListView. For one-off creation of views there is no performance gain. Is there some benefit I'm missing?