On page 500 the book says to write the following code in the PhotoAdapter’s onCreateViewHolder():
View view = inflater.inflate(R.layout.gallery_item, viewGroup, false);
Am I missing something or should you not inflate the layout you created on the previous page like so:
View view = inflater.inflate(R.layout.list_item_gallery, viewGroup, false);