我应该为Android图标使用什么dp? [英] What dp should I use for Android icons?

查看:71
本文介绍了我应该为Android图标使用什么dp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现这个 LINK 概述了图像/图标/通知的尺寸/ Android应该是等等。然后,我找到了一些可靠的标准图标,偶然发现了Google的 REPOSITORY 。每个图标存在于18,24,36和48dp中。然后我可以下载mdpi,hdpi,xhdpi,xxhdpi和xxxhdpi的每个图像。

I found this LINK that outlines what dimensions of images/icons/notifications/etc in Android should be. I then looked for some solid standard icons and stumbled upon Google's REPOSITORY. Each icon exists in 18, 24, 36, and 48dp. I can then download each image for mdpi, hdpi, xhdpi, xxhdpi, and xxxhdpi.

为什么他们提供4种不同的dp如果每个dp我得到所有6个文件夹的图标(mdpi,hdpi等)?另外,哪个dp最好?我应该使用48只是因为它最清脆吗?

Why do they offer the 4 different dp's if for each of the dp's I get the icon for all 6 folders (mdpi, hdpi, etc)? Also, which dp is the best? Should I use 48 simply because it's the most crisp?

推荐答案

您从是图片大小。内部的每个文件夹都是具有该尺寸的图像,按比例缩放到每种设备类型屏幕尺寸( mdpi hdpi xhdpi xxhdpi xxxhdpi )。

Size which you pick from this is image size. Each folder inside, is that image, with that size, scaled to proper resolution for each device type screen size (mdpi, hdpi, xhdpi, xxhdpi, xxxhdpi).

您将使用哪种尺寸,这是您的选择(或 Material Design ,如果您决定遵循这些规则)。

Which size you will use, it's your choice (or Material Design, if you decide to follow these rules).

这篇关于我应该为Android图标使用什么dp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆