Android 5.0 notification icon is blank square
来源:互联网 发布:怎么玩转淘宝联盟 编辑:程序博客网 时间:2024/06/17 06:03
In Android 5.0, the small notification icon must be the size below. Otherwise the icon will be displayed as a blank square.
- 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)
Reference:
http://stackoverflow.com/questions/4265595/android-status-bar-expects-icons-of-size-25x25dp-while-guidelines-recommend-32x3
0 0
- Android 5.0 notification icon is blank square
- Android notification icon 变成白色
- Android notification动态设置网络图片icon
- Android SMS intercept without notification icon or WAP-PUSH messages
- Android 消息推送(notification) 标题栏icon不显示内容
- Notification bar icon turns white in Android 5 Lollipop
- Notification icon问题
- Notification的icon大小
- android webview https blank
- android.app.Notification.Notification(int icon, CharSequence tickerText, long when)翻译
- blank
- Android 5.0+ 之Notification
- There is no ic_menu_refresh icon in android:drawable?
- 关于Android Notification Bar icon setSmallIcon 显示为白板或白色的问题
- What is an Icon?
- launcher/notification icon的尺寸标准
- Android 5.0 Notification的改变
- List of devices attached is followed by blank!
- C++中this指针的用法详解
- 按字符串反向字母序排列字符串数组
- 面试专题-----计算机网络常考(六)
- 文章标题
- ANSI文档转成Unicode格式文档(超大文件也适用)
- Android 5.0 notification icon is blank square
- Oracle数据库-----常用sql语句和数据类型
- 交叉验证(简单交叉验证、k折交叉验证、留一法)
- 34.标题换行居中的TextView
- surfaceflinger中各个layer的排序
- kail2.0下hping3的安装和使用
- 如何通过进程pid获取进程名、可执行文件的名称
- Add One
- Spark-Caching /Checkpointing