我如何设置的HTC Sense和三星的Touchwiz应用程序图标徽章?徽章、应用程序、图标、如何设置

2023-09-07 00:25:07 作者:等风也等你

股票Android不支持徽章(例如未读一个消息应用程序计数)叠加像iPhone上的应用程序图标。有许多在这里对#1的问题这证实这一点,并建议使用小窗口

Stock Android doesn't support 'badges' (e.g. unread count on a messaging app) that overlay the app icon like on the iPhone. There are a number of questions here on Stackoverflow which confirm this and suggest using a widget.

虽然部件是可爱的东西,他们需要从用​​户过多交互的地方得到(所有的搜索,长pressing等),实际上并没有改变应用程序的图标。所以,不,这是不是一种选择。

Whilst widgets are lovely things, they require too much interaction from the user to get in place (all that searching, long pressing etc.) and don't actually change the app icon. So no, that is not an option.

我承认,Android不具备的应用程序图标徽章。然而,HTC Sense的和三星的TouchWiz 执行。我看着我的Galaxy S,现在,应用程序启动消息的图标与未读短信的数量徽章。

I accept that Android doesn't have app icon badges. However, HTC Sense and Samsung TouchWiz do. I'm looking at my Galaxy S right now, and the app launcher Messaging icon has a badge with the number of unread SMS messages.

有谁知道如何单独访问这个徽章功能的检测和TouchWiz的设备? (我希望有两个API)。

Does anyone know how to access this badge functionality individually for Sense and TouchWiz devices? (I expect there are two APIs).

推荐答案

我不知道HTC,但我已经写了怎么在这里How你对三星手机界面BadgeProvider

I don't know about HTC but I've written up how to do this on Samsung phones here How do you interface with BadgeProvider on Samsung phones