views-widgets-samples icon indicating copy to clipboard operation
views-widgets-samples copied to clipboard

Reuse of the ViewHolder class name

Open kroikie opened this issue 9 years ago • 1 comments

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

kroikie avatar Jul 29 '15 18:07 kroikie

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.

PaulRashidi avatar Jul 30 '15 15:07 PaulRashidi