Open Piashsarker opened 3 years ago
@elihart Please have a look.
enable debugLogging in your controller and watch your Logcat for strange behavior, also override onExceptionSwallowed and throw the exception, the models changing like that is probably because your ids are not stable, or maybe you have duplicated ids or because you are modifying a bounded model etc.
Also i would recommend that you implement only one clicklistener, and create an interface with a method that takes View as a parameter, then implement that interface in your activity or fragment and get the viewId so you can use a simple switch statement to know what item has been clicked in your model, that way you can move all the logic out of your controller
I am using epoxy for quick with different view types in the same recycler view. That's work like a charm!
one problem i am facing with view changes. I want to update my model view for a likeListener, seems like when i use condition in onBind the view is changing in other models/ items also. Below is my model class
I am trying to listen onClick listener in my controller class. When i update a view after onClick and scroll down randomly views changes in my recyclerview.