简体   繁体   English

Android应用启动器图标实际大小

[英]Android app launcher icon actual size

According to android info over the web app launcher sizes should be following: 根据web应用程序启动器大小的android信息应该如下:

48 × 48 (mdpi)
72 × 72 (hdpi)
96 × 96 (xhdpi)
144 × 144 (xxhdpi)
192 × 192 (xxxhdpi)

But when I make screenshot from my Nexus5 actual pixel size is different (180x180 for xxhdpi), looks like Lollipop use different icon size. 但是当我从我的Nexus5制作截图时,实际像素大小不同(xxhdpi为180x180),看起来像Lollipop使用不同的图标大小。

What I mean: 我的意思是: 问题

PS I am using default android launcher, no mods or accessibility settings. PS我正在使用默认的android启动器,没有mods或辅助功能设置。

Some devices scale-up the launcher icon by as much as 25%. 某些设备将启动器图标放大25%。 For example, if your highest density launcher icon image is already extra-extra-high density, the scaling process will make it appear less crisp. 例如,如果您的最高密度启动器图标图像已经超高密度,则缩放过程将使其看起来不那么清晰。 So you should provide a higher density launcher icon in the mipmap-xxxhdpi directory, which the system uses instead of scaling up a smaller version of the icon. 因此,您应该在mipmap-xxxhdpi目录中提供更高密度的启动器图标,系统使用该图标而不是按比例缩放较小版本的图标。

Note: The mipmap-xxxhdpi qualifier is necessary only to provide a launcher icon that can appear larger than usual on an xxhdpi device. 注意: mipmap-xxxhdpi限定符仅用于提供在xxhdpi设备上显示比平常更大的启动器图标。 It is best practice to place all your launcher icons in the res/mipmap-[density]/ folders. 最佳做法是将所有启动器图标放在res/mipmap-[density]/文件夹中。 This enables your app to display launcher icons that have a higher density than the device, without scaling up a lower density version of the icon. 这使您的应用程序可以显示密度高于设备的启动器图标,而无需放大图标的低密度版本。 You do not need to provide xxxhdpi assets for all your app's images. 您无需为所有应用的图像提供xxxhdpi资产。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM