Possible errata


In looking at Figure 19.8:19.9, there is a possible inconsistency. In what I have read, fill_parent has been replaced in 8+ with match_parent. In these two figures for creating the fragment_crime.xml layouts, you seem to mix use of the two. Might consider changing the references of fill_parent to the updated constant.


How embarrassing! Good catch. Added to errata.


And I think android:layout_width of ImageButton should be “wrap_content”

EDIT: Watching Figure 20.7 and 20.8 in the next chapter, I figured out why the android:layout_width of ImageButton is “match_parent”.