0% found this document useful (0 votes)
31 views31 pages

Scalable Android Apps

This document discusses implementing scalable designs for Android apps. It notes there are over 300 Android devices with different screen sizes and densities. It recommends using design patterns and layout managers like RelativeLayout and LinearLayout to create interfaces that dynamically adapt to different devices. It also suggests using density independent pixels, 9-patch images, and drawing from code to make elements scale properly, and deploying multiple APKs as a last resort for device-dependent values.

Uploaded by

Anudeep Aithal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views31 pages

Scalable Android Apps

This document discusses implementing scalable designs for Android apps. It notes there are over 300 Android devices with different screen sizes and densities. It recommends using design patterns and layout managers like RelativeLayout and LinearLayout to create interfaces that dynamically adapt to different devices. It also suggests using density independent pixels, 9-patch images, and drawing from code to make elements scale properly, and deploying multiple APKs as a last resort for device-dependent values.

Uploaded by

Anudeep Aithal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Implementing Scalable Android Design

Juhani Lehtimki, Senior Software Engineer

Android User Group Munich Meetup. 25 August 2010. Hosted by

More than 300 devices with different Screen sizes and dimensions Screen densities Android versions OEM skins Control interfaces

Common problems Screen dimensions Screen density Pixel perfect graphics

Design Pattern =
a solution to a common problem

Action Bar
Smartphones + Tablets

Dashboard
Smartphones

Split View
Tablets

Layout Managers

RelativeLayout LinearLayout
FrameLayout TableLayout Custom Layouts AbsoluteLayout

RelativeLayout

parent top below

above parent bottom

480 x 800

320 x 480

Multiple Layouts

Screen size

Android version

Screen orientation

Screen density DPI Dots Per Inch

480 x 800

320 x 480

Density independent pixels (DP or DPI)

android:padding="10dp"

9-patch images

http://developer.android.com/guide/developing/tools/draw9patch.html

Drawing from code

Device dependent values

If everything else fails...

Multiple APKs

Thank you! Questions, discussion?

[email protected] @lehtimaeki http://www.AndroidUIPatterns.com

You might also like