July 2015
Beginner to intermediate
600 pages
18h 59m
English
Now that you have been introduced to MVC, you are going to update GeoQuiz’s view layer to include a Next button.
In Android, objects in the view layer are typically inflated from XML within a layout file. The sole layout in GeoQuiz is defined in activity_quiz.xml. This layout needs to be updated as shown in Figure 2.6. (Note that to save space we are not showing the attributes of unchanged widgets.)
Figure 2.6 New button!
So the changes you need to make to the view layer are:
Remove the android:text attribute from the TextView. You no longer want a hard-coded question to be part of its definition. ...
Read now
Unlock full access