Hi there,
in chapter 8 part “A view to display” there seems to be a mistake for creating new ids in the list_item_crime.xml layout file. Both TextViews should create new ids (@+id/crime_title and @+id/crime_date), that are already created in the fragment_crime.xml!?
It’s OK to reuse IDs in this way. The only time reusing IDs is not OK is when you have duplicates in a view that you are calling findViewById
on.
It is a good practice to name your IDs uniquely though. Some people prefix the layout file name before their IDs. or example: list_item_crime_crime_title
would be an ID. This was a little too verbose for the book so we used a simpler name.
Alright, thank you