Android app icon size _android

Source: Internet
Author: User

In the Android program, the icons are set in the drawable, but the results are not shown in Millet 2, but they appear normal in my own HTC and emulator. It was later found that the DPI of millet was not the same.

It was later discovered that Android loaded a series of icons to accommodate different resolutions and DPI.

ldpi (Low density screen,120 DPI) with an icon size of X-px.

MDPI (Medium density screen, 160 DPI) with an icon size of X-px.

HDPI (High density screen, at the same size as the DPI), with an icon of X-px.

XHDPI (extra-high density screen, the image DPI) with an icon size of x px.

XXHDPI (xx-high density screen, and the DPI), whose icon size is 144 x 144 px.

If you set the icon, the Phone desktop icon does not update, you can restart the phone to try.

Some suggestions:

In the design process, several pixel points are left around to make the design icons visually consistent with other icons, such as:

x PX icon can draw area can be set to the size of the X-px, surrounded by 4 pixels to fill (no background).

The X-px icon can be drawn in the area size can be set to the X-px, around 2 pixels left to fill (no background).

The PX icon can be drawn in the area size can be set to X-px, around 1 pixels left to fill (no background).

x px icon can be drawn area size can be set to x px, surrounded by 1 pixels left for filling (no background).

Related Article

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.