/MaterialBadgeTextView

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

Primary LanguageJava

MaterialBadgeTextView

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

More importantly, it has a default shadow like FAB(Floating Action Button) and more simple to use just like ordinary TextView.

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, 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.