Skip to content

As the name describes, this is an Android library that you can use to show new messages badge and new features badge.

Notifications You must be signed in to change notification settings

zqfeixiang/MaterialBadgeTextView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Android Arsenal

MaterialBadgeTextView

As the name describes, this is an Android library that you can use to show new messages badge and new features badge, for example in some IM App such as WhatsApp, Facebook Messenger, WeicChat.
More importantly, it has a default shadow like FAB(Floating Action Button) and it's more simple to use just like ordinary TextView. Only one java Class and no png or xml drawable resource file.

Why you need this library

  1. You know, the Shadow & Elevation is Material Design core element. So...
  2. Like TextView, you didn't need to care about background shadow, width, height, visible, gone and the limit of numbers. Just set text, textColor and TextSize in layout xml, or call setBadgeCount(), setHighLightMode() method in source code...

If you use mac OS X, you must have seen this image:

Demo Screen Capture

Compat

API level 9+ supported

Example

See example code here on Github. You can also see it live downloading this apk

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

As the name describes, this is an Android library that you can use to show new messages badge and new features badge.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%