Only see Title with no Details


#1

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?


#2

There’s probably an issue with your crime_fragment.xml. Try comparing against the solution code at http://www.bignerdranch.com/solutions/AndroidProgramming.zip. If that doesn’t work, post it here and we’ll see if we can’t find the problem.


#3

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.