0% found this document useful (0 votes)
201 views

Android: Resources and Intents: JP Lafond TF, Cs76

The document discusses the directory structure for resources in an Android application. It describes the purpose of various "res" directories like "res/color", "res/drawable", and "res/layout" which contain colors, images, and UI layouts respectively. It also notes that dimensions should be specified in "dip" so they scale properly for different devices. Additionally, it covers the "res/values" directory for project variables and the use of "intents" to pass data between application activities.

Uploaded by

Hai Nguyen
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
201 views

Android: Resources and Intents: JP Lafond TF, Cs76

The document discusses the directory structure for resources in an Android application. It describes the purpose of various "res" directories like "res/color", "res/drawable", and "res/layout" which contain colors, images, and UI layouts respectively. It also notes that dimensions should be specified in "dip" so they scale properly for different devices. Additionally, it covers the "res/values" directory for project variables and the use of "intents" to pass data between application activities.

Uploaded by

Hai Nguyen
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Android: resources and intents

Jp LaFond [email protected] TF, CS76

Res directory layout


res/color res/drawable res/drawable-hdpi res/drawable-land-hdpi res/layout res/values

res/drawable

<shape> <gradient /> </shape>

res/color
<selector> <item>... </selector> NOTE: First item found is all the one selected,
so choose the order well.

res/drawable-<version>
hdpi - High Quality mdpi - Medium Quality ldpi - Low Quality land-hdpi - High Quality Landscape land-mdpi - Medium Quality Landscape land-ldpi - Low Quality Landscape

res/layout
ScrollView(s) LinearLayout(s) RelativeLayout(s) NOTE: Have all sizes in dip so that theyll
scale for various size screens or rotations.

res/raw

Files that wont be parsed: xml les to be read and not parsed... audio/video les text les to be read

res/values
Denitions of project specic variables: Colors Styles Themes Strings

Intents

Intents allow you to pass information between


activities.

You might also like