At run time, the platform transparently handles any scaling of The density-independent pixel is equivalent to one physical pixel on a 160ĭpi screen, the baseline density assumed by the platform (as described later in Density-independent pixel (dp) A virtual pixel unit that applications can use in defining their UI, toĮxpress layout dimensions or position in a density-independent way. Scaling of the resources up or down to meet the specific screen density. Resources for each of these densities - the platform handles any necessary Generalized densities: low, medium, large, and extra large. Will appear larger on the lower density screen and smaller on the higher densityįor simplicity, Android collapses all actual screen densities into four (such as a button) whose height and width are defined in terms of screen pixels Theĭensity of a screen is important because, other things being equal, a UI element Sometimes significantly more - pixels spread across the same area. Screen width and height, where a screen with higher density has more. Density Based on the screen resolution, the spread of pixels across the physicalĪ screen with lower density has fewer available pixels spread across the In Android, applications do not workĭirectly with resolution. Resolution is often expressed as width x height, resolutionĭoes not imply a specific aspect ratio. Resolution The total number of physical pixels on a screen. Using the resource qualifiers long and notlong. Applications can provide layout resources for specific aspect ratios by Aspect ratio The porportional relationship of the screen's physical width to its The rendering of the layouts at the actual screen size. Layouts for each of these four sizes - the platform transparently handles Generalized sizes: small, normal, large, and extra large. Terms and Concepts Screen size Actual physical size, measured as the screen's diagonal.įor simplicity, Android collapses all actual screen sizes into four Platform supports, and an overview of the API and underlying Multiple screens, including an introduction to terms and concepts used in thisĭocument and in the API, a summary of the screen configurations that the The sections below provide an overview of the Android platform's support for Make available on small screens (such as QVGA) or for which you would like to provide better supportįor extra large screens, please see Strategies for Legacy Applications for In particular, if you have an existing application that you would like to Screen types, you should consider providing additional support for xhdpi and If you've already followed the guidance in this document to support all other ( xhdpi), and starting in Android 2.3, the platform includes support for extra large screens Starting in Android 2.2, the platform includes support for extra high density screens In most cases, only minor adjustmentsĪre needed, however you should make sure to test your Your application for proper display on new devices that offer different screensĪnd that are running Android 1.6 or later. If you have already developed and published an application for Android 1.5 orĮarlier, you should read this document and consider how you may need to adapt Supported device screens and that you can deploy to any device as a single. Here, you can easily create an application that displays properly on all This document explains the screens-support features provided by the platformĪnd how you use them in your application. Precise control over their application's UI when displayed on specific screen The same time, the platform exposes APIs that give application developers For applications, the platform provides aĬonsistent environment across devices and handles much of the complexity ofĪdapting an application's UI to the screen on which it is being displayed. It's important to follow the best practices described in this document and test your application in all supported screens.Īndroid is designed to run on a variety of devices that offer a range of.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |