I have added an ImageView to the list_item_crime.xml and want to load a thumbnail showing in the fragment_crime.xml.
I’ve tried adding the getPhotoFile
function from the CrimeDetailViewModel in CrimeListViewModel and the body of CrimeFragment’s updatePhotoView
function (Listing 16.15) in the bind function of CrimeListFragment’s CrimeHolder class, but no thumbnail shows, even if I try taking a picture again.
How can I dynamically load the same image captured in the crime fragment as a thumbnail in the crime list fragment?