views-widgets-samples
views-widgets-samples copied to clipboard
Reuse of the ViewHolder class name
Use CostomViewHolder instead of ViewHolder for custom View Holder. https://github.com/googlesamples/android-RecyclerView/blob/master/Application/src/main/java/com/example/android/recyclerview/CustomAdapter.java#L39
I made this suggestion to Arthur in the office the other day. I was referencing snippets of the sample when writing something up and the reuse of the ViewHolder class name doubled the explanation length. Referencing CustomViewHolder as a class would have been much more concise and I believe it makes the snippets more readable when viewed in isolation. Just a suggestion.