Dip:device independent pixels (device independent pixel). Different devices have different display effects, this is related to the device hardware, we generally support WVGA, HVGA and QVGA CWJ recommended Use this, do not rely on pixels.Px:pixels (Pixel). Different devices display the same effect, generally we hvga represent 320x480 pixels, this use more.Pt:point, is a standard length unit, 1pt=1/72 inches, used in the printing industry, is very simple and easy to use;sp:scaled pixels (zoom in p
Tan Xiaosheng, director of Yahoo China technology R D department, gave a speech nbsp; it is a great honor to be able to talk about our use of LAMP as a user today. Yahoo is a world-renowned Internet company with many products. Yahoo China is just Yahoo. COM is a sub-level product. if you really live in North America,
above parameter is that the dip is equal to the PX value.From the above, the visual designer in the WVGA (480x800) mode design, the recommended optimal spacing is: 12px, 18px, 24px, 30px, 36px, 42px, 48px, because the dip, PX value in the HVGA\WVGA corresponding are even, Each element can be the most stringent alignment.Second, SP and pxVisual measurement results between SP and px under WVGA (800x480):
DP (DIP): device independent pixels (unit independent pixels). Different devices have different display effects, this is related to the device hardware, generally we support WVGA, HVGA and QVGA recommend this, do not rely on pixels.Px:pixels (pixels). Different devices show the same effect, generally we hvga represent 320x480 pixels, this use more.Pt:point, is a standard length unit, 1pt=1/72 inches, for the printing industry, very simple to use;sp:scaled pixels (enlarge pixels). Mainly used for
Debugging when developing a website with vs2008
Code (Select the method attached to the process for debugging), the following error is reported when executing an SQL query:
"/Vm" Application
Program Server error.
The execute permission on the object 'SP _ sdidebug' (Database 'master', owner 'dbo') is denied.
Note:An error occurred while executing the current Web request. Check the stack trace information for details about the error an
Dp (dip): device independent pixels (device independent pixel ). different devices have different display effects, which are related to the hardware of the device. We recommend that you use this function to support WVGA, HVGA, and QVGA without pixels.
Px: pixels (pixels). Different devices have the same display effect. Generally, we use HVGA to represent 320x480 pixels, which is usually used.
Pt: point, a standard unit of length, 1pt = 1/72 inch, used in the printing industry, very easy to use;
Yang is SS/SN is SP (medium)
--- Integrate the concept of social software into SP operation
Step 1: add your own mature IM/Outlook contact list:
By default, SMS chat is only performed for SP operations.Step 2: Apply for adding the SN yourself:
Enter the following information segments:
2. Engaged in industry
2. Educational Level
2. Location
2. Self-Introdu
DP (DIP): device independent pixels (unit independent pixels). Different devices have different display effects, this is related to the device hardware, generally we support WVGA, HVGA and QVGA recommend this, do not rely on pixels.Px:pixels (pixels). Different devices show the same effect, generally we hvga represent 320x480 pixels, this use more.Pt:point, is a standard length unit, 1pt=1/72 inches, for the printing industry, very simple to use;sp:scaled pixels (enlarge pixels). Mainly used for
2 + width pixel number 2)/Screen diagonal inchesDp:density-independent pixels, with 160PPI screen as standard, then 1dp=1px,Conversion formulas for DP and PX:dp*ppi/160 = px. such as 1DP x 320ppi/160 = 2px.Sp:scale-independent pixels, which is the font unit for Android, is the standard 160PPI screen, when the font size is 100%, 1sp=1px.conversion formula for SP and px : sp*ppi/160 = pxIt concludes that:PX
[Dip:device independent pixels (device independent pixel).
Different devices have different display effects, this is related to the device hardware, we generally support the WVGA, HVGA and QVGA recommended to use this, do not rely on pixels.
Px:pixels (Pixel). Different devices display the same effect, generally we hvga represent 320x480 pixels, this use more.
Pt:point, is a standard length unit, 1pt=1/72 inches, used in the printing industry, is very simple and easy to use;
sp:scaled pixels
are shorter than the phone screen, some are longer than the screen, on the tablet and mobile phone compared to the difference is more obvious.DipExactly the same as DP, except the name is different. The dip was used in earlier versions of Android, and the DP name was later recommended for unification with SP.Sp:Abstract pixels independent of scale (Scale-independent Pixel). The SP and DP are similar but the only difference is that the Android system
1. px (pixels) pixels-is a pixel, which is the actual pixel unit on the screen.
Dip or dp (device independent pixels) device independent pixels, related to the device screen.
Sp (scaled pixels-best for text size): similar to dp, it mainly deals with the font size.
Dpi (dot per inch): screen pixel density, how many pixels per inch
There is a member with the same name in the android api. The method is as follows:
2. dpi indicates the pixel density of t
/*** DP, SP conversion to PX tool class** @author Fxsky 2012.11.12**/public class Displayutil {/*** Convert PX value to dip or DP value to ensure size unchanged** @param pxvalue* @param scale* (attribute density in Displaymetrics Class)* @return*/public static int Px2dip (context context, float Pxvalue) {Final float scale = context.getresources (). Getdisplaymetrics (). density;return (int) (Pxvalue/scale + 0.5f);}/*** Convert dip or DP values to PX v
Dip: Device Independent pixels (device independent pixels). Different devices have different display effects. This is related to the device hardware. Generally, to support WVGA, hvga, and qvgaWe recommend that you use this,Pixel independent.Px: pixels (pixels). Different devices have the same display effect. Generally, we use hvga to represent 320x480 pixels, which is usually used.PT: point, a standard unit of length, 1pt = 1/72 inch, used in the printing industry, very easy to use;
Document directory
1: Main Screen Size
2: Mobile Phone size
1: pixel (PX)
2: Resolution resolution
3: density Density
4: DPI densitydpi
5: Dip (DP) device independent Pixel
Note: There is a formula
6: SP pixel Amplification
7: Resolution of each screen
I have never been very clear about the cell phone size and screen resolution, so I spent some time learning about it and make a summary. If something is wrong, I still hope to correct it.
Px: The pixel of the screen.In: inchesMM: mmPT: LB, 1/72 inchDP: an abstract unit based on density. If a screen of DPI is displayed, 1dp = 1px.Dip: equivalent to DPSP: similar to DP, but it also scales according to the user's font size preference.We recommend that you use SP as the unit of text, and dip for others.
The following is an overview of the relationship between DIP and PX:
The following figure shows the resolution information density, which
different mobile phones, you will find that the horizontal line on some mobile phones is shorter than the mobile phone screen, and some are longer than the screen, the differences between tablets and mobile phones are more obvious.Dip:
It is exactly the same as DP, but the name is different. Dip was used in earlier Android versions. We recommend that you use the DP name for consistency with sp.SP:
Scale-independent pixel ). SP is similar to DP, but t
Px, dp, and sp used in android DevelopmentFirst, we will introduce these units:
Px: pixels (pixels), which corresponds to the actual pixels on the screen.
Dip: device independent pixels, which is a density-independent pixel. It is an abstract unit based on screen density. On a display at 160 o'clock per inch,
1dp = 1px, that is, the 1: 1 relationship. (Dp is dip)Sp: scaled pixels (enlarged pixels). pixels i
Dpi, ppi, dip, dp, px, sp, dpippi
Basic Concepts
1. dpi (dots per inch): The number of dots per inch; ppi (Pixel per inch): The number of dots per inch. Designed for the monitor, dpi = ppi.
2. dip (device independent pixels) devices are independent pixels. Different devices have different display effects, which are related to device hardware and do not depend on pixels.
3. dp (Density-independent pixel), an abstract unit based on screen Density. 1
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.