我正在尝试向锁定屏幕添加徽章(数字)通知,但我没有多少运气。任何有关这方面的帮助将非常感谢!!!
var badgeContent = BadgeUpdateManager.GetTemplateContent(BadgeTemplateType.BadgeNumber);
BadgeNotification badgeNotification = new BadgeNotification(badgeContent);
BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeNotification);
答案 0 :(得分:2)
您忘记设置显示的号码:
view.animate().setListener(null);
在第1行代码和第2行代码之间插入,然后就可以了。