Only see Title with no Details


After replacing CrimeActivity with CrimePagerActivity the item display shows the word “Title” at the top of the screen, the actual item title in the middle of the screen, and the edit box at the bottom of the screen. The details, button and checkbox are not on the screen and therefore inaccessible. I confirmed the code from the book is in my files. Did I miss something?


There’s probably an issue with your crime_fragment.xml. Try comparing against the solution code at If that doesn’t work, post it here and we’ll see if we can’t find the problem.


That was it. The tag for the Crime Title had the layout height set to “match_parent” rather than “wrap_content”. When I made that correction, the Crime Title field no longer took up the whole screen.

Thank you for the help.