如何在Android上制作应用程序徽章? [英] How to make application badge on android?

查看:120
本文介绍了如何在Android上制作应用程序徽章?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

-2016年4月23日编辑-

--Edit on 23 Apr 2016--

我终于在大多数设备上使用了ShortcutBadger,我认为这对我来说已经足够了.

I finally use ShortcutBadger for most of the Device, I think that should be enough for me.

ShortcutBadger

基本上,Shortcut Badger会将广播,意图等发送到特定的启动器(例如LG Launcher)以制作徽章.它可能无法涵盖所有​​启动器,但至少可以用于最新的智能手机.

Basically, Shortcut Badger will send broadcast, intent, etc to specific launcher, such as LG Launcher, to make a badge. It may not cover all the launchers but at least it works for the most recent smart phones.

-编辑-

我在LG G2(4.4)上看到的是很多应用程序,例如行,其中显示未读计数.

What I am seeing on LG G2 (4.4), there is a number of some of the Apps, e.g. Line, which showing unread count.

这是我的意思是应用程序徽章,我想找到一种解决方法.

This is the application badge I mean and I want to find a way to work that out.

启动器本身也会通知此号码,将应用程序放在文件夹中时,该文件夹还会显示徽章.

This number will also be notified by the launcher itself, when the app in put inside a folder, the folder will also show the badge.

我认为应该有使其工作的方法,因为我发现有带有徽章的应用程序.

I think there should have ways to make it work, as I found several apps having badges.

-原始-

我之前进行了搜索,发现有一种方法可以在三星和索尼上制作应用程序徽章,但是我想要的是支持其他供应商,例如LG和HTC.

I did a search before and I found that there is a way to make application badge on Samsung and Sony, but what I want is to support other vendor, such as LG and HTC.

是否有通用的制作应用程序徽章的方法?

IS there an universal way to make an application badge?

感谢您的帮助!

推荐答案

Stock Android目前在标准启动器上不提供此功能.

Stock Android does not offer this functionality at the moment on the standard launcher.

某些制造商(例如三星,尤其是HTC,LG,Mi)已将此功能纳入其自定义的Android启动器中.另外,一些第三方启动器(例如Nova Launcher)都包含一个API来完成此操作.

Certain manufacturers (e.g. Samsung notably, HTC, LG, Mi) have included this functionality into their customized Android launchers. Also some 3rd-party launchers (e.g. Nova Launcher) have included an API to accomplish this.

您可能需要检查以下链接以获取进一步的说明:

You may want to check following links for further explanation:

  1. Facebook如何运作在Android的应用程序图标上添加徽章编号?
  2. 如何在android上制作应用程序徽章?
  1. How does Facebook add badge numbers on app icon in Android?
  2. Does Samsung modifies it's Android ROMs to have badges on email and SMS icons?
  3. How to make application badge on android?

致谢

这篇关于如何在Android上制作应用程序徽章?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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