exact physical pixels per inch of the screen in the Y dimension. constructor abstract DisplayMetrics () method abstract voidsetTo (DisplayMetrics o) voidsetToDefaults () from class java. lang. object Inheritance Method equals, getClass, hashCode, y, policyall, toString, wait field details DEFAULT_DENSITY public static final int DEFAULT_DENSITY The reference density used throughout the system. for more information, see: constant field value widthPixels public int widthPixels The absolute width o
Reprint Please specify source: http://blog.csdn.net/my_truelove/article/details/66584865Visit ruicb.com, one click to reach my blog! Scan the left or the bottom right QR code, follow my public number, timely access to the latest article push!
Conceptual Literacy inchpx and DPI
1 inch of screen size
2 px of screen resolution
DPI of 3 pixel density
Fragmentation of di
suitability on generailized size/density.In the design of the actual layout, should be used in the unit is DP, so you can avoid the screen due to different dpi, the most typical example is the retina screen of Apple.
Xlarge:at least 960DP x 720DP
Large:at least 640DP x 480DP
Normal:at least 470DP x 320DP
Small:at least 426DP x 320DP
PX = DP * (dpi/160)
For example, a
Today, my friend uses Photoshop to process the picture to save the specified size, but she only to the centimeter to shape the sense, but in the software to save the picture does not have this unit, can only save the units of pixels; Other software can only be saved in inches. I went to the internet to find the next information, finally found the conversion formula, special record:) 72 Megapixels/inch = 28.346 px/cm300 megapixels/inch = 118.11 px/cm1 cm = 0.3937 inches1 inch = 2.54 cm First of a
resolution does not mean the aspect ratio of the screen. In Android systems, the program generally does not directly process the resolution.
DensityPixels arranged along the length and width of the Screen Based on the screen resolution.Low-density screens have only a small number of pixels in the long and wide directions, while high-density screens usually have many-or even very many-pixels arranged in the same area. The screen density is very important. For example, the interface elements (suc
Article 3. Pre-development knowledge supplement: length units and screen resolutions of Android, which are also reproduced ~~, Android screen resolutionThis article is a bit early, but it is very practical. For more information about the Unit, see the red part.
Screen Resolution Basics
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
Knowledge required for mobile webapp development and webapp Development
There are more and more mobile devices, and more than 1.3 million android mobile phones are activated every day. Therefore, our webapps for mobile terminals are also starting to follow up. This article describes the knowledge and experience of webapp development and debugging, and provides several optional solutions.I. Basic concepts (1) CSS pixels and device pixels
CSS pixels: the abstract unit used by the browser to draw c
 ̄  ̄  ̄  ̄  ̄  ̄  ̄  ̄ √ theAngleLineRulerinch
Can figure out the dpi of just two screens, one is440dpi, the other is184dpi。Note that dpi , dip(dp) like the way you do it, don't confuse the former with density , which is related to pixels .Division of 1.1.3 DPIAndroid uses a dpi value of 160 as a benchmark-- baseline
If a device is
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
1 . Image Scaling after alignment problem in the Android development, how to use pictures is a headache for many developers. The most common problem is debugging a good UI on a phone , which can deform on a different dpi phone. A Ndroid provides a different fit dpi dpi dpi all use a set of pict
size to display the maximum page pixels, such as in this window can display a 800-pixel page, the page is designed to 800 pixels, the full display, This window you can understand as the picture, the picture looks the same size, but their pixels may not be the same, that is the meaning.You can define the properties of the window in the For example, in the following paragraph from the HTML code, it sets the window size exactly matches the width of the device screen, and the zoom function is disab
which the user is allowed to zoom.User-scalable: Whether the user can manually scale
Width
Sets the width of the layout viewport , as a positive integer, or the string "Width-device"
Initial-scale
Sets the initial zoom value of the page, which is a number that can be taken with decimals
Minimum-scale
Allows the user's minimum zoom value to be a number that can be taken with decimals
Maximum-scale
Allows the user's
before I do, I'm going to introduce a little trick for a friend who is designing with PS.As I said before, we want to think about the interface in logical pixel size. Embodied in the design process, is to set the unit into a logical pixel. Open the PS Preferences-unit and ruler interface to change the size and text units to point. The point here is PT, which is used by the organization, whether it's iOS, Android or Web apps. Of course, the name of each platform unit should be remembered. Here w
pages that have been optimized for mobile pages:name content initial-scale Maximum-scale=1″>meta>If you want the page to support responsive design, you need to add the viewport meta tag to the page. See the responsive design in bootstrap.The complete viewport syntax is as follows:-name= "Viewport" Content = " height = [Pixel_value | device-height], width = [Pixel_value | device-width], Initial-scale = Float_value, minimum-scale = float_val
different phones, such as a 96*96 pixel control that looks smaller in the overall UI in the increasingly high-resolution phone.ImageAppears similar to this, the overall layout effect may deform, so the PX unit is not recommended in the layout file.DP Direct AdaptationFor this scenario, Android recommends using DP as a unit of size to fit the UI.So what is DP? DP refers to a device-independent pixel, a DP-sized unit of control, in different resolutions and sizes of the phone on behalf of differe
Abstract: This article introduces the concept of android Unit dp and dip, and gives its exact meaning. Summary in Android, dp is short for Density-independent Pixels, while dip is Density Independent Pixels. It actually refers to a concept, which is a unit of Android. Description in More Resource Types: dp Density-independent Pixels-An abstract unit that is based on the physical density of the screen. these units are relative to a 160 dpi (dots per in
and log on?
Let X talk to the xfs server
It seems that although my xfs is very happy to serve, my X server does not listen to it. I have an IBM Thinkpad 760e that knows the pain of configuring X. Therefore, I saved a copy of my XF86Config file, instead of trying to guess a new configuration every time (although the capability of Linux Mandrake gives me a deep image ). My old XF86Config file does not reference any conversations with the xfs server and I have to edit it manually. This may or m
name.To adjust the magnification, it is controlled by the DPI in the image size. This dpi, in fact, is the PPI, pixel density. One common sense is that the design dpi on the screen is set to 72, and the print design dpi is set to 300. Why are these two numbers?First of all, say 300, which is related to the discernment
used by the organization, whether it's iOS, Android or Web apps. Of course, the name of each platform unit should be remembered. Here we use only its principle, do not care about the name.To adjust the magnification, it is controlled by the DPI in the image size. This dpi, in fact, is the PPI, pixel density. One common sense is that the design dpi on the screen
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.