Their names always follow the same pattern. Here, R.layout.item_book generates ItemBookBinding the same way R.layout.item_tweet_favorited would generate ItemTweetFavoritedBinding
Don’t write RecyclerView adapters
Miguel Ángel Moreno

Isn’t this redundant? The Binding class that is generated is already bound to the layout from which it is created, so passing in R.layout.item_book into the ItemType seems like duplicate work and maybe even a possibility of mistakes for a developer

Like what you read? Give Akash a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.