Closed pgreze closed 6 years ago
@pgreze I think you have also a resource color called shimmer_color and it's causing conflicts with Skeleton with the same name.
@ethanhua If I remember correctly, this issue happened after I renamed my shimmer_color to shimmer. I think it's showing than https://github.com/ethanhua/Skeleton/blob/master/library/src/main/java/com/ethanhua/skeleton/RecyclerViewSkeletonScreen.java#L62 is relying on Android weird resources fallbacks, leading to an unstable user experience.
I don't have a specific fix to advise but I finally decided to fork your good library into my project, in order to avoid similar unwritten defaults. Thanks for your hard work, especially your recycler view binder.
I am using data binding and for recycler view I am using the collection adapter library: https://github.com/evant/binding-collection-adapter
Getting error:
java.lang.ClassCastException: com.ethanhua.skeleton.SkeletonAdapter cannot be cast to me.tatarka.bindingcollectionadapter2.BindingRecyclerViewAdapter at me.tatarka.bindingcollectionadapter2.BindingRecyclerViewAdapters.setAdapter(BindingRecyclerViewAdapters.java:19) at com.coroutinedemo.databinding.FragmentTodoListBindingImpl.executeBindings(FragmentTodoListBindingImpl.java:209)
please help to get rid of it.
Version: 1.1.0