Java Reference
In-Depth Information
Application Resources
As well as having a set of environmental resources (e.g., databases, preferences, a
filesystem,threads,andtheLinuxprocess)foritscomponentstoshare,anappcanhave
itsownapplicationresources:propertyanimations,tweenanimations,statelistsofcol-
ors, drawables, layouts, menus, raw files, simple values (e.g., strings), and arbitrary
XML files.
Note Althoughyoucanembedapplicationresourcessuchasliteralstringsinsource
code, you should separate them into files to facilitate maintenance, localization (dis-
cussedinAppendixC),anddeviceadaptability(makingyourapp'suserinterfacelook
good at different screen sizes, for example).
Androidrequiresthatanappstoreitsapplicationresourcesfilesin Table12-1 ' ssub-
directories (and their subdirectories, where appropriate) of the app's res directory.
Search WWH ::




Custom Search