隐藏时间在Android的通知,而无需使用自定义布局 [英] Hide time in Android notification without using custom layout

查看:132
本文介绍了隐藏时间在Android的通知,而无需使用自定义布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个标准的Andr​​oid通知右下角是时间(例如12:00简单)。我可以将其隐藏,而无需使用自定义通知布局?

In the bottom right corner of a standard Android notification is time (eg 12:00). Can I hide it without using custom notification layout?

推荐答案

这是可能做到这一点。

尝试设置时为0。 对于少数通知不这样做,它看起来像多数民众赞成他们做什么。

Try setting when to 0. For the few notifications that don't do that, it looks like thats what they do.

下面是一般参考

下面是一个链接<一个href="http://pdn-slatedroid.google$c$c.com/svn-history/r43/trunk/eclair/frameworks/base/services/java/com/android/server/NotificationManagerService.java">ADB通知和寻找私人无效updateAdbNotification()...

Here's a link to the ADB notification and search for private void updateAdbNotification()...

这篇关于隐藏时间在Android的通知,而无需使用自定义布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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