Oops I think I read your question wrong, my b, short answer, yes, the logic can either go in the onBindViewHolder method or preferably in your view holder class. In terms of testing, it's quite difficult to test views (adapter, view holder etc) so as long as you do something similar to above with keeping as much of the business logic in your repository or view model etc then you should be good to go