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

Show your support

Clapping shows how much you appreciated Akash’s story.