What's the real size of the launcher icon on nexus 5?

雨燕双飞 提交于 2019-12-07 08:17:12

问题


As the doc mentioned,the launcher icon is 48*48dp.

So I think the launcher icon should be 144 * 144px on my nexus 5.
But I research a screenshot of my nexus 5,I find it's almost 166* 163px.
Why it's bigger than 144*144px?

Is my method of calculating the size wrong?

(p.s. an app with a 144*144px icon in the drawable-xxhdpi folder is also shows 166* 163px in the launcher.)

This is my screenshot:


回答1:


Per the info provided by someone working at Google, Nexus 5's launcher uses the launcher icon in the next DPI bucket, i.e. on Nexus 5 it will use one DPI bucket up XXHDPI --> XXXHDPI, which makes the icon 192x192. The reason why your measurement is less than 192 is because the launcher icon graphics is not supposed to fill the whole image.




回答2:


Nexus 5 is XXHDPI device.These device DPI are around 440. So, Google Nexus 5 need to add a 144*144px icon in the drawable-xxhdpi folder.



来源:https://stackoverflow.com/questions/25131077/whats-the-real-size-of-the-launcher-icon-on-nexus-5

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!