要下载用于材料设计图标的软件包? [英] What package to download for material design icons?

查看:61
本文介绍了要下载用于材料设计图标的软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我转到 https://design.google.com/icons/,然后选择一个要下载的图标,它使我可以选择下载18dp,24dp,36dp或48dp版本.我下载了24dp软件包,其中包含hdpi,mdpi,xhdpi,xxhdpi和xxxhdpi图像.因此,我不确定下载其他18dp,36dp或48dp软件包的区别是什么.有谁知道其中的区别?在大多数android设备上具有最佳兼容性的最佳下载软件是什么?

If I go to https://design.google.com/icons/ and I select an icon to download, it gives me the option of downloading the 18dp, 24dp, 36dp, or 48dp version. I downloaded the 24dp package and it came with the hdpi, mdpi, xhdpi, xxhdpi, and xxxhdpi images. So I'm not sure what the difference is from downloading the other packages of 18dp, 36dp, or 48dp. Does anyone know the difference? What would be the best one to download to have the best compatibility across the majority of android devices?

推荐答案

所以我不确定下载其他18dp,36dp或48dp软件包有什么区别.

So I'm not sure what the difference is from downloading the other packages of 18dp, 36dp, or 48dp.

如果下载24dp图标包,它将包含以下图像:

If you download 24dp icon package it will contain folowing images:

  • 24x24px mdpi(1x)
  • 36x36px hdpi(1.5x)
  • 48x48px xhdpi(2x)
  • 72x72px xxhdpi(3x)
  • 96x96px xxxhdpi(4x)

所有这些都会在具有不同DPI的屏幕上产生24dp图像.它与其他基本尺寸的工作方式相似.

All of these will produce a 24dp image on screens with varying DPI. It works in a similar fashion with other base sizes.

工具栏图标通常为24dp.

Toolbars icons are generally 24dp.

通知图标为24dp.

默认按钮的高度为36dp(顶部和底部分别为6dp,总共48dp),因此我不会超过36dp的图标.超出此范围的任何内容都会使按钮伸展.

A default button is 36dp tall (plus 6dp on top and bottom making it 48dp in total) so I wouldn't go past 36dp for an icon. Anything beyond that would stretch the button.

这篇关于要下载用于材料设计图标的软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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