SkeletonLayout icon indicating copy to clipboard operation
SkeletonLayout copied to clipboard

Ability to have a different ViewHolder

Open mochadwi opened this issue 4 years ago • 1 comments

internal class SkeletonRecyclerViewHolder(layout: SkeletonLayout) : RecyclerView.ViewHolder(layout)

Is there any alternative to extend/modify this class?

I've ViewBindingViewHolder class that is failed when using Skeleton due to ClassCastException cannot cast SkeletonRecyclerViewHolder to ViewBindingViewHolder

mochadwi avatar Aug 15 '20 00:08 mochadwi

The ClassCastException might occur when expecting a custom ViewHolder after calling showSkeleton() due to the whole RecyclerView.Adapter being replaced. Maybe you could provide a sample and explain your goal, so that we can look for a solution together.

Faltenreich avatar Aug 15 '20 09:08 Faltenreich