【问题标题】:How to get notification badge in actionbar item using Titanium如何使用 Titanium 在操作栏项目中获取通知徽章
【发布时间】:2014-05-14 12:02:01
【问题描述】:

我正在使用 Titanium 开发应用程序,并希望功能在 Android 的操作栏中有一个通知徽章,如附图所示。

在 Android 原生中,我们可以使用 menu >> item 标签中的 actionLayout 属性来实现相同的效果。

但不清楚我们如何使用 Titanium 做同样的事情。

至少我需要建议或指导,我可以继续前进。

谢谢。

【问题讨论】:

    标签: notifications android-actionbar titanium badge


    【解决方案1】:

    查看 Titanium 文档中的 Android Notification 教程。

    应该有你需要的一切。但是,我不确定您所说的徽章是什么意思。有appBadge property,但只适用于iOS系统。

    【讨论】:

      猜你喜欢
      • 2017-08-28
      • 2023-03-15
      • 2015-01-03
      • 1970-01-01
      • 2013-07-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多