Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to have a different ViewHolder #20

Open
mochadwi opened this issue Aug 15, 2020 · 1 comment
Open

Ability to have a different ViewHolder #20

mochadwi opened this issue Aug 15, 2020 · 1 comment
Labels
question Further information is requested

Comments

@mochadwi
Copy link

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

@Faltenreich
Copy link
Owner

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 Faltenreich added the question Further information is requested label Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants