• Stars
    star
    317
  • Rank 132,216 (Top 3 %)
  • Language
    Kotlin
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A notification badge with animation.

NotificationBadge

A notification badge with animation.

sample

Gradle

implementation 'com.nex3z:notification-badge:1.0.4'

Usage

<com.nex3z.notificationbadge.NotificationBadge
    android:id="@+id/badge"
    android:layout_width="28dp"
    android:layout_height="28dp"
    app:nbMaxTextLength="2"/>

Use setNumber(int number) or setText(String text) to add number or arbitrary text on the badge. Use clear() to clear the badge.

Attributes

Attribute Format Description
textSize dimension Text size.
textColor color Text color.
nbBackground reference Badge background image.
nbAnimationEnabled boolean true to enable animation, falseto disable it. The default is true.
nbAnimationDuration integer Duration of the animation in milliseconds. The default is 500 milliseconds.
nbMaxTextLength integer Max text length allowed to show on the badge. The default is 2.
nbEllipsizeText string Special text to show when the length of the original text reaches nbMaxTextLength. The default is ....

Licence

Copyright 2016 nex3z

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.

More Repositories

1

FlowLayout

A flow layout for Android with auto-spacing.
Java
2,392
star
2

ToggleButtonGroup

A group of flowable toggle buttons, with multiple / single selection support and button customization.
Java
418
star
3

tflite-mnist-android

MNIST with TensorFlow Lite on Android
Kotlin
216
star
4

machine-learning-exercise

Python implementation of the programming assignment from Machine Learning class on Coursera, which is originally implemented in Matlab/Octave.
Jupyter Notebook
83
star
5

android-examples

Java
36
star
6

tfmobile-mnist-android

MNIST with TensorFlow Mobile on Android
Python
10
star
7

NppLogGazer

Notepad++ plugin providing fancy search features for log analysis.
C#
8
star
8

tfserving-mnist

TensorFlow Serving model for handwritten digits classification from MNIST.
Python
6
star
9

PopularMovies

Udacity Developing Android Apps course project.
Java
4
star
10

kotlin-reference-cn

Kotlin ζ–‡ζ‘£ηš„δΈ­ζ–‡ηΏ»θ―‘
3
star
11

NppQuickSearchPanel

Notepad++ plugin for quick search.
C#
3
star
12

ToShakeList

Java
2
star
13

Shalarm

Java
2
star
14

PopularMoviesKotlin

Kotlin
1
star
15

tflite-model-maker-flowers

Kotlin
1
star
16

garbage-classification-android

Kotlin
1
star
17

coursera-spa-with-angularjs-assignment

Assignment for Single Page Web Applications with AngularJS by Johns Hopkins University on Coursera
JavaScript
1
star
18

ExpandableCircleView

A circular progress indicator that expands or shrinks the circle to the given progress.
Java
1
star
19

tensorflow-exercise

Jupyter Notebook
1
star
20

think-bayes-playground

Jupyter Notebook
1
star
21

CheckableGroup

Java
1
star
22

oj-exercise

Exercises from various OJ. Releated articles can be found at http://blog.nex3z.com/tag/acm/.
C++
1
star