Confusion: Possible typo in ViewHolder paragraph

In CrimeHolder’s constructor, you inflate list_item_crime.xml. Immediately you pass it into super(…), ViewHolder’s constructor. The base ViewHolder class will then hold on to the fragment_crime_list.xml view hierarchy. If you need that view hierarchy, you can find it in ViewHolder’s itemView field.

Where does ViewHolder get a reference to fragment_crime_list.xml view hierarchy when you’re only passing the inflated list_item_crime.xml to its constructor?

That should be the list_item_crime.xml view hierarchy. I will add this typo to our list. Thank you for reporting this.