Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suport pentru rezoluții diferite
Droid Offline
Android Developer
*******

Postări: 43
29
Alăturat: Dec 2011
Reputație: 0
Aprecieri acordate: 1
Primit 73 aprecier(i) în 17 post(ări)
#1
Suport pentru rezoluții diferite
Câteva resurse utile despre suportul pentru rezoluții diferite în aplicațiile Android:

Supporting Multiple Screens

Citat:Android runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consistent development environment across devices and handles most of the work to adjust each application's user interface to the screen on which it is displayed. At the same time, the system provides APIs that allow you to control your application's UI for specific screen sizes and densities, in order to optimize your UI design for different screen configurations. For example, you might want a UI for tablets that's different from the UI for handsets.

Although the system performs scaling and resizing to make your application work on different screens, you should make the effort to optimize your application for different screen sizes and densities. In doing so, you maximize the user experience for all devices and your users believe that your application was actually designed for their devices—rather than simply stretched to fit the screen on their devices.

By following the practices described in this document, you can create an application that displays properly and provides an optimized user experience on all supported screen configurations, using a single .apk file.

Screen Sizes and Densities

Citat:This page provides data about the relative number of active devices that have a particular screen configuration, defined by a combination of screen size and density. To simplify the way that you design your user interfaces for different screen configurations, Android divides the range of actual screen sizes and densities into:

Providing Alternative Resources

Citat:Almost every application should provide alternative resources to support specific device configurations. For instance, you should include alternative drawable resources for different screen densities and alternative string resources for different languages. At runtime, Android detects the current device configuration and loads the appropriate resources for your application.
15-12-2011, 09:34 AM




User(s) browsing this thread: 1 Guest(s)