You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Composable
fun MainView(){
EpoxyInterop<MyEpoxyClassModel_>{
...
}
}
Then it throws a run time exception like this
java.lang.ClassCastException: androidx.cardview.widget.CardView cannot be cast to com.example.homefragment.models.MyViewHolder
ata com.example.homefragment.models.MyEpoxyClass.bind(MyEpoxyClass.kt:18)
at com.example.compose.MainScreen$MyEpoxyClass$3$invoke$lambda$1$$inlined$EpoxyInterop$2.invoke(ComposeInterop.kt:105)
at com.example.compose.MainScreen$MyEpoxyClass$3$invoke$lambda$1$$inlined$EpoxyInterop$2.invoke(ComposeInterop.kt:96)
It works perfectly if I use @ModelView instead of @EpoxyModelClass. Is there any way to use the @EpoxyModelClass in EpoxyInterop<>?. Thanks
The text was updated successfully, but these errors were encountered:
Hi, I try to use EpoxyInterop using a class that is annotated with @EpoxyModelClass. For example
My XML layout
Then in my composable
Then it throws a run time exception like this
It works perfectly if I use
@ModelView
instead of@EpoxyModelClass
. Is there any way to use the@EpoxyModelClass
inEpoxyInterop<>
?. ThanksThe text was updated successfully, but these errors were encountered: