Skip to content

Notified is an android view that displays the number of new elements.

Notifications You must be signed in to change notification settings

sahgoku/Notified

Repository files navigation

alt text

Notified

Notified is an android view that displays the number of new elements...

Installation

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'
   }

Usage

Programmatically

    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)
    

Add notified to your layout

  1. notified_icon : Selected icon
  2. 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"/>

Informations

When the number of notifications is more or equal to hundred, notified set "99+".

About

Notified is an android view that displays the number of new elements.

Resources

Stars

Watchers

Forks

Packages

No packages published