1, Android Phone common resolutionwvga:800x480fwvga:854x480qhd:960x540720p:1280x720 (SD, Standard DEFINITION,SD)1080p:1920x1080 (HD, High DEFINITION,HD)2, the resolution corresponds to DPIDPI (dots per inch, point in dots)hdpi corresponds to WVGA, FWVGA, QHD.xhdpi corresponds to 720P.xxhdpi corresponds to 1080P.3. Androidmanifest.xml settingAndroid:anydensity= "t
Original article address:Http://blog.csdn.net/xiaominghimi/archive/2011/02/12/6180606.aspx
A question asked by the brothers in the group just now, I will share it with you here: the new emulator is configured as a device simulator with a resolution of 800*480 FOR THE waga800, when we obtain its height and width in our program, we find that it is always 320*533, obviously the system is lying to us! For example:
Below is the original official documen
Android various screen resolutions:VGA: video Graphics Array, that is: Display the drawing matrix, equivalent to 640x480 pixels;HVGA: half-size VGA, that is:halfVGA , resolution of 480x320, like Samsung's furious Ace S5830 is the use of this resolution;qvga:NBSP; QUARTERNBSP;VGA VGA One-fourth, resolution 320
/dashboard/screens.html) 3, is mainly based on the resolution of 800*480 and 854*480 mobile phone users mostlyFigure 3From the above screen size distribution, in fact, the phone just consider 3-4.5-inch density of 1 and 1.5 of mobile phones4 UI DesignFrom a development perspective, the application will provide 3 sets of UI layout files based on the 3-class Android phone screen, but the corresponding interfa
The android project was developed in the previous phase. Due to customer requirements for Multi-Resolution adaptation, it can support mainstream resolution mobile phones in China. Therefore, after several development times, many detours have taken place. At present, we have just learned some android multi-
Everybody help!Bloggers participate in 2014 blog star activities, we help vote! Punch here!It is a very interesting thing to know the hardware through the program. I studied the physical size of the screen on WM6.5, but it has not been successful. Later, I wanted to make a breakthrough on Android, but I didn't get the exact size before today. Although many people think that there is no need to be so serious, because it seems that many circumstances do
Screen Size1. Different Layout
The screen sizes of Android mobile phones vary by 480X320,640x360,800 X. How can an app automatically adapt to different screens? In fact, it is very simple, just need to create different layout folder under the res directory, such as: layout-640x360, layout-800x480, all the layout files will be written to R after compilation. java, and the system selects the appropriate layout based on the screen size.
2. hdpi, mdpi, an
(http://developer.android.com/resources/dashboard/screens.html) 3 shows, the current is mainly to the resolution of 800*480 and 854*480 mobile phone users mostly
Figure 3
From the above screen size distribution, we can only consider mobile phones with a density of 1 and 1.5 between 3-inches.
4. uidesign
From the perspective of development, the application provides three sets of UI layout files based on the screen of three types of
shows, the current is mainly to the resolution of 800*480 and 854*480 mobile phone users mostly
Figure 3
From the above screen size distribution, we can only consider mobile phones with a density of 1 and 1.5 between 3-inches.
4. uidesign
From the perspective of development, the application provides three sets of UI layout files based on the screen of three types of Android phones, but three sets of corr
Tags:Android development image resolution drawablehdpimdpildpiit
Category: Unix/Linux
1. Differences between drawable-(hdpi, mdpi, ldpi)DPI is the abbreviation of "dot Per Inch". The number of dots per inch.Four density classifications: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extrahigh)Normal screen: ldpi is 120, mdpi is 160, hdpi is 240, and xhdpi is 320.
2. Differences between WV
We know that Android offers several different resolution bitmap to match the density of different phone screens. The corresponding relationship is as follows:
xxhdpi:3.0
xhdpi:2.0
hdpi:1.5
mdpi:1.0
ldpi:0.75
So a problem arises:Since Android can be converted automatically, why waste user space to store low-
To solve the Android device fragmentation, introduce a concept density, that is, density. It refers to the number of pixels displayed on a physical screen of a certain size, generally using the dpi (dots per inch, pixel of each inch) as a single
such as the device resolution of 240x320, screen physical size of 1.5 inches x2 inches (Diagonal 2.5) Its density can be expressed in
Android asynchronous load full resolution large map processingAn important part of asynchronous loading is the processing of images, which is why we used to load images asynchronously earlier.On the one hand, due to bad image processing will occupy memory, and Easyoom, and on the one hand, the image is larger than the text, loading is slower. Therefore, in the explanation of how to multi-threaded, Asynctask
can be hidden, what you use, delete (╯‵-′) ╯︵┻━┻Last Test, no problem, everything is normal ~PS: Soft keyboard is actually not difficult, but Jiabuzhu strange error:①findviewbyid This sentence has been run not through, not he below, is he does not pass:Workaround: Online speaking, IDE issues (Eclipse ... ay): Project→clean;②findviewbyid ran, and his next sentence Setonclicklistener run not through:Solution: Debug, found that the value of Ll_login is null, online search, clean over the Ignore, s
1. OverviewIn the past, programmers typically designed computer user interfaces in pixels. For example, the image size is 80x32 pixels. The problem with this approach is that if you run the program on a new monitor with a higher dots per inch (dpi), the user interface will appear small. In some cases, the user interface may be too small to see the content. This problem can be solved by developing the program in a resolution-independent unit of measure
In the previous example, the Android ApiDemos example resolution (61): Graphics-> Compass and the Android ApiDemos example resolution (79): Graphics-> SensorTest involves Sensors.
This example introduces the Sensors usage supported by Android.
SensorManager is used to manage
What is DPI? DPI is the abbreviation for "dot per inch" and the number of pixels per inch. Four density classifications: ldpi (Low), MDPI (Medium), hdpi (High), and xhdpi (extra high) General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.DPI Calculation formula dpi= Diagonal pixel value/sizePhone screen resolution and screen density are different! Not
1. Different LayoutThe screen sizes of Android mobile phones vary by 480X320,640x360,800 X. How can an app automatically adapt to different screens? In fact, it is very simple, just need to create different layout folder under the res directory, such as: layout-640x360, layout-800x480, all the layout files will be written to R after compilation. java, and the system selects the appropriate layout based on the screen size.2. hdpi, mdpi, and ldpiIn earl
What is DPI?DPI is the abbreviation for "dot per inch" and the number of pixels per inch.Four density classifications: ldpi (Low), MDPI (Medium), hdpi (High), and xhdpi (extra high)General screen: LDPI is 120,mdpi is 160,hdpi is 240,xhdpi is 320.The DPI calculation formuladpi= diagonal pixel values/dimensionsPhone screen resolution and screen density are differen
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.