Android Programming Tutorials

(Romina) #1

TUTORIAL 10


A Few Good Resources


We have already used many types of resources in the preceding tutorials.


After reviewing what we have used so far, we set up an alternate layout for


our LunchList activity to be used when the activity is in landscape


orientation instead of portrait.


Step-By-Step Instructions..........................................................................


First, you need to have completed the previous tutorial. If you are


beginning the tutorials here, or if you wish to not use your existing work,


you can download a ZIP file with all of the tutorial results, and you can copy


the 09-Lifecycle edition of LunchList to use as a starting point.


Step #1: Review our Current Resources..............................................


Now that we have completed ten tutorials, this is a good time to recap what


resources we have been using along the way. Right now, LunchList has:



  • Seven icons in LunchList/res/drawable/, all PNGs

  • Two XML files in LunchList/res/layout/, representing the main


LunchList UI and the definition of each row



  • One XML file in LunchList/res/menu/, containing our option menu


definition



  • The system-created strings.xml file in LunchList/res/values/


87
Free download pdf