状态栏图标在某些Android设备上看起来很奇怪 [英] Status bar icons look wierd on some android devices

查看:108
本文介绍了状态栏图标在某些Android设备上看起来很奇怪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Android设备开发一个应用程序,该应用程序在后台运行并且有时会推送通知。按下通知时,状态栏中会弹出一个图标。问题是,在某些设备中,它看起来太大而且被剪裁但在其他设备上看起来很好。例如,当我在我的个人设备上测试应用程序时,三星Galaxy S3 android 4.2.2和运行Android 2.2的虚拟设备上看起来很不错。但是当我在LG E400f上测试应用程序--L Style android 2.3.6时它看起来像这样:

I'm currently developing an app for the android device which running in the background and pushing notifications sometimes. When notification is pushed an icon pops in the status bar. The problem is that in some devices it look too big and clipped but on others it's looks fine. For example when I'm testing the app on my personal device, Samsung Galaxy S3 android 4.2.2 and on a virtual device running android 2.2 it looks just fine. But when i tested the app on LG E400f - L Style android 2.3.6 it looks like this:

任何人都知道为什么会这样?
先谢谢!

Anyone knows why this is happens? Thanks in advanced!

推荐答案

您需要为每个平台提供正确大小的图标。该文档的此处

You need to supply icons in the correct size for each platform. The documentation for that is here.

这篇关于状态栏图标在某些Android设备上看起来很奇怪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆