Professional Documents
Culture Documents
A screen
that enables you
to compose
an email.
Consists of xml.
Describe the static layout of a screen.
A few types available:
LinearLayout children are lined up automatically.
RelativeLayout - children order needs to be defined.
ListView children are items of a list.
Etc.
The Activity Layout example.
The Service.
start an AsyncTask:
Tips and pointers Multiple screens.
Many different devices = Many different
screen sizes.
Prepare by:
Use wrap_content, fill_parent, or dp units for layouts
(no PX reframe from hardcoded values altogether).
Test on many different Emulator instances.
Use 9patch images (they stretch correctly).
Add per-resolution drawable resource folder:
- layout-small/
- layout-xlarge/..
Tips and pointers location detection.
3 main possibilities:
1. GPS.
1. Most accurate.
2. Wireless networks.
1. Gives faster results.
2. Costs less battery.
3. Works inside buildings.
3. Cell towers.
1. Always available.