Using the code in [color=#4000FF]Figure 19.3 Layout for CrimeCameraFragment (fragment_crime_camera.xml)[/color]:
Eclipse does not like the android:layout_width=“0dp” for the surfaceview widget. It flags it as an error (but will still allow me to run the app):
Here it is:
It also has a warning for the next line:
if I change layout_height to also be “0dp” the error and warning go away.
EDIT: the error and warning also went away after running the app.