Skip to content

An Android library supports badge notification like iOS in Huawei, Xiaomi, OPPO and vivo launchers.

Notifications You must be signed in to change notification settings

dingzhipengV/BadgeNumberManager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

BadgeNumberManager

An Android library supports badge notification like iOS in Huawei, Xiaomi, OPPO and vivo launchers.

Demo Screenshot

Usage

This library supports badge notification like iOS in Huawei, Xiaomi, OPPO and vivo launchers.

In order to support Huawei(华为) launcher,we need to declare a permission in AndroidManifest:

<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE"/>

and then,just set the BadgeNumber like this:

BadgeNumberManager.from(context).setBadgeNumber(num)

More detail

For more detail,please check these articles:

简书专栏:有关Android应用桌面角标(BadgeNumber)实现的探讨

知乎专栏:有关Android应用桌面角标(BadgeNumber)实现的探讨

掘金专栏:有关Android应用桌面角标(BadgeNumber)实现的探讨

About

An Android library supports badge notification like iOS in Huawei, Xiaomi, OPPO and vivo launchers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%