Android status bar expects icons of size 25x25dp while guidelines recommend 32x32dp. Who is wrong?

感情迁移 提交于 2019-11-27 18:09:08

Warning: regardless of whether or not the answer was correct when written, it appears not to be correct now. See https://www.google.com/design/spec/style/icons.html for the current guidelines.

It just seems to be an error. (Note that as of 2010-12-04, they've also crossed their references to figures 4 and 5 on that page.)

As Lex points out, they have the correct number further down, in the "Status bar icon" section.

They also dictate a 2-pixel "safeframe" on all sides at 25x25 which the shape of your icon must fit within, though it seems that it is okay to have some aliasing-related stuff stick out, but only on the sides, for this type of icon. (Meaning that you really want to aim for 21x21 at that size.)

user1531030

Actually it's

  • 18px(ldpi)
  • 24px(mdpi)
  • 36px(hdpi)
  • 48px(xhdpi)
  • 72px(xxhdpi)
  • 96px(xxxhdpi)

it's 24dp size with a 2dp padding , means 20dp content

px = dp * (dpi/160)

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