Notified is an android view that displays the number of new elements...
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.sahgoku:Notified:v1.0.5'
}
Notified notified = (Notified) findViewById(R.id.notified);
-
Set icon :
notified.setIcon(Drawable icon) notified.setIcon(Bitmap icon) notified.setIcon(Int resource)
-
Set number of notifications :
notified.setNumber(int value)
- notified_icon : Selected icon
- notified_count : Number of unread notifications
<com.jaures.notifiedlib.Notified
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:notified_count="57"
app:notified_icon="@drawable/ic_bus"/>
When the number of notifications is more or equal to hundred, notified set "99+".