QuickAF icon indicating copy to clipboard operation
QuickAF copied to clipboard

Can't instance ViewHolder(xx.xx.ViewHolder) in xxx.xxx.AdapterDelegate

Open Jamling opened this issue 7 years ago • 1 comments

Can't instance ViewHolder(xx.xx.ViewHolder) in xxx.xxx.AdapterDelegate is it an assessable (public/static) class?

Jamling avatar Apr 24 '18 08:04 Jamling

Your XXViewHolder must be an accessable class, if the XXViewHolder is inner class, please add public static modifier to it. Another solution is to overried instanceViewHolder and return an XXViewHolder instance under your XXAdapterDelegate.

Jamling avatar Apr 24 '18 08:04 Jamling