sahgoku / Notified

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

Home Page:http://www.jauressah.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

http://www.jauressah.com


Languages

Language:Kotlin 70.0%Language:Java 30.0%