Best Practices for Resolution Independence

The variety of Android hardware available provides both an exciting opportunity and a potential hazard for application developers.

This section summarizes some of the most common techniques for creating applications that will run effectively on any screen platform.

The most important thing to remember is never make assumptions regarding the screen your application will be running on. Create your layouts and assets for classes of screens (small, normal, and large size with low, medium, and high density) rather than particular screen dimensions or resolutions. By assuming your application will need to be scaled slightly on every device, you can ensure that when it is scaled the UI does not suffer.

The Android Developer site includes some excellent tips for supporting multiple screen types. The section on "Strategies for Legacy Apps" is particularly useful for developers with existing applications looking to support new screen sizes and resolutions. You can find this documentation here: .com/guide/practices/screens_support.html#strategies

Mobile Apps Made Easy

Mobile Apps Made Easy

Quick start guide to skyrocket your offline and online business success with mobile apps. If you know anything about mobile devices, you’ve probably heard that famous phrase coined by one of the mobile device’s most prolific creators proclaiming that there’s an app for pretty much everything.

Get My Free Training Guide

Post a comment