通知图标仅适用于 senseUI
如果我遵循通知栏设计的用户指南,它必须是深灰色(对于 android < 2.3),但从意义上来说,通知栏是黑色的,所以我的图标几乎是看不见的。
有没有办法检测 senseUI 并仅为 senseUI 创建新的资源文件夹?
If i follow the user guidelines for the notification bar design it has to be dark gray (for android < 2.3) But on sense, the notification bar is black, so my icon is almost invisible.
Is there a way to detect the senseUI to create a new resources folder just for senseUI ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不是专门针对 Sense,但您可以检查构建字符串并将其与已知的 SenseUI 手机进行匹配。
Build.Model
可能是您最好的选择。 http://developer.android.com/reference/android/os/Build.html另一种方法是让用户通过将其放置在选项屏幕中来更改显示的内容。
Not specifically Sense but you can check the Build strings and match them against known SenseUI phones.
Build.Model
is probably your best bet. http://developer.android.com/reference/android/os/Build.htmlAn alternative would be to let the user change which one gets displayed by placing it in your options screen.
smith324 在我之前就已经做到了,但这里是我刚刚从 HTC Desire 中提取的相关构建字符串。不幸的是,其中没有“Sense”的指示,但正如 smith324 所建议的,使用 Sense 检查已知手机可能会有所帮助。
smith324 got to it before I did but here are the relevant Build strings I just pulled of an HTC Desire. Unfortunately no indication of 'Sense' in there but as smith324 suggested, checking against known phones with Sense might help.