我们可以像 iPhone 一样在 Android 应用程序图标上显示徽章编号吗?

发布于 2024-12-27 21:26:24 字数 353 浏览 3 评论 0原文

可能的重复:
有办法吗在 Android 中向应用程序图标添加徽章?

我只是想知道我们可以在 Android 应用程序图标中显示徽章编号吗?

我知道 Android 通知与 Iphone 不同,但我想在我的 Android 应用程序中执行此操作。

这适用吗?

感谢您的回答。

Possible Duplicate:
Is there a way to add a badge to an application icon in Android?

I just wanted to know that can we show the badge number in Android app Icon?

I know that android notifications are different then Iphone but i want to do in my android app.

Is that applicable?

Thanks for your answer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

旧人哭 2025-01-03 21:26:24

我想我们能做到。检查这个问题Android TabHost 上的徽章。接受的答案是指此代码 https://github.com/jgilfelt/android-viewbadger

编辑我还没有尝试过。检查这个问题。 有办法吗在 Android 中向应用程序图标添加徽章?

I think we can do it. check this question Badge on Android TabHost. the accepted answers refers to this code https://github.com/jgilfelt/android-viewbadger

Edit i haven't tried yet. check this question. Is there a way to add a badge to an application icon in Android?

如此安好 2025-01-03 21:26:24

您只能通过创建小部件而不是应用程序图标来做到这一点。请参阅此问题了解更多信息。

You can do it only by creating widget instead app icon. Look this question for more info.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文