Layout doesn't match book page 10


#1

Hi,
I have just started the book and working through GeoQuiz, I have typed in the code from page 11 into activity_quiz_xml but the layout doesn’t match that on page 10. My TextView is at the top of the vertical LineaLayout, not in the centre, and the LinearLayout containing the buttons is just under the TextView with the buttons left justified. I have inserted the line:

android:layout_gravity=“center”

into the LinearLayout containing the buttons and this has now centred the buttons. However, the LinearLayout containing the buttons and the TextView still remain at the top of the vertical LinearLayout, and not in the centre as shown on page 10. Thanks

I am using Eclipse ADT
Build: v22.6.2-1085508