Android manual density (dpi) modification method, androiddensitydpi

Source: Internet
Author: User

Android manual density (dpi) modification method, androiddensitydpi

In the Android system, the default density is set based on the screen resolution range, which is 320 (xhdpi). You can also manually modify the density.

Modify the ro. sf. LCD _density VALUE IN system. prop;

For example, ro. sf. LCD _density = 480;

We can use the adb command to query this attribute:

Adb shell getprop ro. sf. LCD _density


How to Set DPI in the Android File System

One Parameter in system/build. prop is LCD. density = 240.
The next step is to change the value. The smaller the value, the smaller the page and the smaller the font.

Android development problems, meizum9 640*960 resolution, which screen density is density?

Explanation of Android screen Density (Density) and resolution
HVGA screen's density = 160
QVGA screen (density = 120)
WVGA screen (density = 240)
WQVGA screen density = 120
The value of density indicates the number of display points per inch, and resolution. The actual screen resolution is 480*800 (density = 240) when the screen resolution is 120*240 for different density screens) the screen width is PX or dip, and the screen width is PX or dip when the height of the working area is 211px or 480dip, when the working area height is 381px or 775dip density = 160, the actual screen resolution is 320px * 533px (three points correspond to two resolutions) the height of the status bar and title bar is 25px or 25dip. The screen width is 533px or 800dip, and the height of the work area is 295px or 480dip. The screen width is 320px or 480dip, when the height of the working area is 508px or 775 dipdensity = 240, the actual screen resolution is 480px * 800px (one point for one resolution). the status bar and the title bar are 38px or 25dip. The screen width is 800px or 800di. P: the screen width is 480px or 480dip when the working area height is 442px or 480dip. The working area height is 762px or 775dipapk in the resource package, resources that use the hdpi label when the screen density is 240. When the screen density is 160, resources that use the mdpi label use the ldpi label when the screen density is 120. Resources without any tags are shared in various resolutions. The Unit dip should be used whenever possible during layout, and less px is my latest understanding. Please correct us. Screen width Height size density Type (Pixels) Range (inches) size Group QVGA 240 320 2.6-3.0 Small Low WQVGA 240 400 3.2-3.5 Normal Low FWQVGA 240 432 3.5-3.8 Normal Low HVGA 320 480 3.0-3.5 Normal Medium WVGA 480 800-3.3 normal High FWVGA 480 854 ...... remaining full text>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.