Google真的建议手机上图标大小40dp吗?(内详)

发布于 2022-09-01 21:15:37 字数 1942 浏览 24 评论 0

赶时间,先把我在SO的问题原样复制过来,回头再改成中文。

I carefully read the definition of dp in this page:https://www.google.com/design/spec/layout/units-measurements.html and draw a conclusion that 1dp should be representing a physical size of 1/160inch, no matter in what device. And this question http://stackoverflow.com/questions/20717887/is-dp-based-on-the-physical-size-of-the-screen-dp-1-160-of-an-inch endorses my conslusion.
Then I come across this image this image
on this page. According to the page, the gray circular should be 40dp, which is 0.25 inch. In this fiddle you can see actual 0.25inch comparing to the 40dp in this image.
I ask myself, is this image being enlarged so the 40dp on it looks much bigger than 0.25inch? I compare the image to my nexus 6, on that page they are about the same physical size. And the elements on this picture look normal as if they are in a real device. Which means, if I implement this 40dp/0.25inch circular icons on my cellphone, they are definitely going to look horribly small. I understand that sometimes 1dp might be a little different from 1/160 inch, but it won't shouldn't be a huge difference lke this. This is where I got confused and had to come here asking for help.
Did google really suggest that the gray circular be 40dp and 0.25inch?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文