example: A platform screen width, height of 1920px,720px, screen density of 240dpiThe qualification for this platform is:OrAccording to the formula 1dp= (240/160) px=1.5px, width, height to DP units are 1280DP and 480DP respectively.Android Adaptive layout layouts with different resolutions or different screen sizes (
the size and clearance of the control. Thus, if the nail moves, the adjacent controls will be shifted forward, without cluttering up the local adjustment .
In WWDC2012 iOS6, Apple has proposed the concept of auto layout, which uses constraints to define the position and size of the view to accommodate screens of different sizes and resolutions.
12.DEPRECATED API Adaptation
Finally, in addition to adapting the
) wvga854* (480x854)
Table 1
3.3 Mobile phone size distribution (http://developer.android.com/resources/dashboard/screens.html), as shown in Figure 3, is currently mainly based on the resolution of 800*480 and 854* 480 of mobile phone users are mostly
Figure 3
From the above screen size distribution, in fact, the mobile phone only consider 3-4 5 inches between the density of 1 and
Why does Android have to be resolution and screen fit
The biggest reason is fragmentation, because Android's open source measures and the individual manufacturers ' own subtle changes, the result becomes this kind of
There are so many screen sizes that you need to fit:
How could that be t_t?
So we take care of
From: http://hi.baidu.com/china_8/item/b1d7e41005111b7f7a5f25a2
Terms and concepts related to mobile phone resolution
Screen size: the actual physical size, diagonal measurement of the screen. For convenience, Android divides all the screen sizes into four broad
program to all platforms.
If you have released a program for Android 1.5 or earlier, read this document carefully and consider how to make your old program have different resolutions, android 1.6 or the update platform is displayed normally. In most cases, you only need to make small changes to the program to achieve the goal, but you still need to test on platforms with various resolutions as much as possible.Specifically, if you have a completed program and want it to run correctly on ultra-l
.---------------------------------------the split line------------------------------------------Well, with all that said, we'll know why our game has a different display on devices with different screen resolutions.Different screen resolutions, the same camera orthographicsize values will produce different camera sizes, different camera
.---------------------------------------the split line------------------------------------------Well, with all that said, we'll know why our game has a different display on devices with different screen resolutions.Different screen resolutions, the same camera orthographicsize values will produce different camera sizes, different camera
The laptop screen resolution is more appropriate, and the desktop screen resolution is more appropriate. The following are commonly used screen resolution settings of various sizes.
At present, there are more and more Windows Phone devices and more sizes and resolutions on the market, especially the arrival of the wp8.1 era. People who have worked on WP development know that application adaptation is much simpler than Android. One important reason is that Microsoft claims that all WP devices will develop with two benchmark resolutions, that is, 800: 480 and 853: 480. The application adaptation of WP8 + is relatively simple, mainl
the actual camera width is calculated by the formula 6.4, just the unit width of the screen.
---------------------------------------the split line------------------------------------------
Well, with all that said, we'll know why our game has a different display on devices with different screen resolutions.
Different screen resolutions, the same camera orthograp
If you have released a program for Android 1.5 or earlier, read this document carefully and consider how to make your old program have different resolutions, android 1.6 or the update platform is displayed normally. In most cases, you only need to make small changes to the program to achieve the goal, but you still need to test on platforms with various resolutions as much as possible.
Specifically, if you have a completed program and want it to run correctly on ultra-low
versions, only the hvga (3.2x320) Resolution on the 480 "screen is supported, and developers do not need to consider the adaptability of the interface. Since Android 1.6, the platform supports devices of various sizes and resolutions, which means developers should consider the diversity of screens during design.
To simplify the design and be compatible with mor
SDK, need to explain the density and metrics.density in a little formula is not a thing, their relationship is: metrics.density = density/ The value of the 160,density is 120, 160, 240, 320 (which is also stated in the SDK);When android:minsdkversion= "3″" is now supported android1.5, in Android 1.5 and earlier, only the HVGA (320x480) Resolution on the 3.2″ screen is supported, Developers also do not need
The first step: first in the notebook desktop blank location Click the right mouse button, in the Pop-up Options menu click "Screen Resolution", as shown in the following figure.
Step two: Next you can see the notebook resolution setting options, drag adjustment on it, after the adjustment is completed click on the bottom of the "OK" to save, as show
expect that all UI textures are "as far as possible" without scaling, so the so-called "as far as possible" level depends on the Minimum height and maximum height,minimum height, which means that when the device is less than this setting, The uiroot is scaled according to this setting value; Maximum height means that when the device resolution is greater than this setting value, the uiroot is scaled according to this setting value (Uiroot is the root
/MainActivity﹕ the screen size is Point(800, 1202)D/MainActivity﹕ the screen real size is Point(800, 1280)
If you cannot reproduce it easily, you don't need to worry about it. For the sake of insurance, use getRealSize () to obtain the correct information.
2. screen size the physical screen size of the device. Differen
According to the screen size and resolution, IOS currently has six versions.1, 3gs; 2, 4S: Representative; 3, iphone5; 4, ipad2: Representative; 5, ipad4: Representative; 6, iPad Mini.Only when the resolution is different, such as the first, second, or fourth, the development can provide two kinds of resolution, automa
not able to reproduce easily and don't worry, be on the safe side, in order to get a relatively accurate message or use Getrealsize ().Second, the screen size device physical screen size. Unlike a few years ago, the current phone screen is too big to hold. Standard early has reached the 5-inch screen era.The so-called
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.