Specifying Supported Screen Sizes


Build your own Android App Dev Empire

Get Instant Access

Android devices come in many shapes and sizes. Screen sizes and pixel densities vary widely across the range of Android devices available on the market today. The Android platform categorizes screen types in terms of sizes (small, normal, and large) and pixel density (low, medium, and high).These characteristics effectively cover the variety of screen types available within the Android platform.

An application can provide custom resources for specific screen sizes and pixel densities (we cover this in Chapter 6,"Managing Application Resources").The <supports-screen> tag can be used to specify which Android types of screens the application supports.

For example, if the application supports QVGA screens (small) and HVGA screens (normal) regardless of pixel density, the <supports-screen> tag is configured as follows:

<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens"false" android:anyDensity="true"/>

For more information about the <supports-screen> tag of the Android manifest file, see the Android SDK reference as well as the Android Dev Guide documentation on Screen Support.

Was this article helpful?

0 0
Easy Software Profits

Easy Software Profits

Here's How Anyone Can Start, Build and Run their Own Successful Software Empire Without Knowing the First Thing About Programming, Scripting Or Any 'Coder' Stuff. There is no doubt about it software sells. Software has a high percieved value and it solves problems for people.  A claim that can't always be made for PDF books, Video products and the like.

Get My Free Ebook

Post a comment