Excerpt from: http://blog.ibireme.com/2014/09/16/adapted_to_iphone6/Apple's website is designed to show that the ultra-high pixel density of the retina display has surpassed the range of human eyes to distinguish.What effect does retina have on image design (icons, splash screens and all other pixels)? If our app is to support retina, we need to provide high resolution (wide x2, high x2) images. Also, in order to support devices without retina, you still have to prepare a low-resolution version.
row of viewport meta tags.Viewport is the default width and height of the page, which means that the page width defaults to the screen width (width=device-width), the original scale (initial-scale=1) is 1.0, that is, the initial size of the page occupies 100% of the screen area.This setting is supported by all major browsers, including IE9. For those older brows
First, the basic concept
Dip:density independent pixels, device independent pixels.
DP: Just Dip
PX: pixels
dpi : dots per inch, which is directly the number of pixels in an inch. A common value of 120,160,240. I am generally referred to as pixel density, short density
density : Direct translation of the words seems to be called density. Common values are 1.5, 1.0. Proportional to the standard dpi (160PX/INC)
Resolution: The number of pixel points in 2 directions, co
1. Screen Related concepts1.1 ResolutionIt means how many pixels are there on the screen.1.2 Screen SizeRefers to the actual physical size of the phone, such as the usual 2.8-inch, 3.2-inch, 3.5-inch, 3.7-inchAndroid divides the screen s
first, the basic concept
Dip:density independent pixels, device independent pixels.
DP: Just Dip
PX: pixels
dpi : dots per inch, which is directly the number of pixels in an inch. A common value of 120,160,240. I am generally referred to as pixel density, short density
density : Direct translation of the words seems to be called density. Common values are 1.5, 1.0. Proportional to the standard dpi (160PX/INC)
Resolution: The number of pixel points in 2 directions,
There are more and more Windows Phone devices on the market, and the size and resolution are more and more, especially the WP8.1 era. The people who have done WP development know that application adaptation is actually more simple than Android, one of the important reasons is that Microsoft is claiming that all WP devices will be 2 benchmark resolution to develop, that is, 800:480 and 853:480. wp8+ application adaptation is relatively simple, mainly t
from://http://blog.csdn.net/ithomer/article/details/6688883Android to get the screen longer than the width, referring to the internet has a lot of code, but the results are inconsistent with the actual, such as my phone is i9000, the screen size is 480*800px, the results are 320*533The results are very unreliable, so I wrote a few lines of code, pro-TestTest para
Basic mobile phone resolution knowledge (DPI, DIP computing)
1. terms and concepts
Terms
Description
Remarks
Screen size)
It refers to the actual physical size of the mobile phone, such as the commonly used 2.8 inch, 3.2 inch, 3.5 inch, 3.7 inch
Motorola's milestone mobile phone is 3.7 inch
Aspect Ratio (width/height Ratio)
Transferred from: http://www.zcool.com.cn/article/ZNjI3NDQ=.html1. Understand several concepts(1) resolution. Resolution is the cell phone screen pixel points, generally described as the screen "wide x high", Android phone screen Common resolution has 480x800, 720x1280, 1080x1920 and so on. 720x1280 indicates that this screen
number of 4:3 of the 20 "and 21" screen of the disjunction, but as the 4:3 screen is becoming more and more rare, to buy this resolution screen is increasingly difficult. On the ginger table there is a "UXGA" Dell screen turned straight, and quite convenient.
# QXGA (2048x1536)-QXGA resolution is four times times the
Obtains the screen size except the taskbar height (width ).
Type rectLeft as longTop as longRight as longBottom as longEnd type
Private declare function findwindow lib "USER32" alias "find0000wa" (byval lpclassname as string, byval lpwindowname as string) as longPrivate declare function getwindowrect lib "USER32" (byval hwnd as long, byref lprect as rect) as Boolean
Public sub XX () 'gets the
PX (pixel) pixels, that is, the display point on the screen, in (inch) inch, per inch = 2.54 cm, we often say that a few inches of mobile phones, refers to the phone screen diagonal is a few inch, dpi (dots per inch) the number of pixels, 320x480 screen, If the width is 1 inches, the horizontal dpi is 320/1 (wide), and if the height is 1.5, the vertical dpi is 48
feedback at all, and they can see some of the interactive feedback when they operate with their fingertips. Then, when users use equipment, switch fingertips and finger pads, no doubt reduce their operational efficiency.
Not only that, small touch targets can cause operational errors. When several small touch targets are closer to each other, the user accidentally touches a neighboring target and throws an unexpected action. The error that is caused by the thumb touch
obviously not the size of the i9000 screen of the test machine.
Method 3: multiply the results obtained from methods 1 and 2 by the density, and then the perfect 480*800, perfect!
Note:If the density is greater than 1, you must set the targetSdkVersion to 4-9. For example:
However, does this mean that method 3 must be generic?
The answer is no, because I also tested it on the simulator, HTC G14 physical
width: window. Screen. availwidth -------------------
Technical PointsThis section uses the window attributes of the Document Object. The main functions and usage of these attributes are as follows.
To obtain the window size, different properties and methods are required for different browsers: to check the actual size of the window, use the window attribute in
At the beginning, the simulator I selected was WVGA854 with a resolution of 854*480. After the development, I felt very OK when I installed it on a 800*480 mobile phone, but when I installed it on a 480*320 or 320*240 resolution mobile phone, many interfaces were distorted, at this time, I felt the importance of app self-adaptation.
Adaptive mainly encounters two major problems: switching between the landscape screen and the landscape
Top 10 practical Android skills: Obtain the physical size, density, and resolution of the screen.
Help me!
The blogger participated in the 2014 blog star event. You can vote for it! Click here!
It is very interesting to know the hardware situation through a program. I studied how to obtain the physical size of the screen
problem of accuracy rate, hot zone and dead angle.
There is a qualitative change in the research of touch-screen mobile phone interaction and PC interaction. Input devices from the mouse keyboard into a finger, on the one hand, the operational accuracy of the challenge, in the intensive information processing, users often appear many misoperation; On the other hand, the finger operation of the special "Dead End and Hot zone" problem is also the PC i
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.