onCreateViewHolder
The `onCreateViewHolder` method is a fundamental callback in Android’s RecyclerView architecture, used to create and return a new `ViewHolder` instance for displaying items in a list or grid. Introduced in the RecyclerView library to optimize performance, this method is invoked whenever the RecyclerView needs to generate a new view to represent an item in its dataset.
A `ViewHolder` is a pattern that caches references to views within a list item, reducing the overhead
For example, if an item requires a custom layout (e.g., `item_layout.xml`), the method inflates this layout using
Best practices include inflating layouts only once per view type and ensuring the `ViewHolder` is properly