Notifications


 

  1. Normal View
  2. Big Picture Style
  3. Big Text Style
  4. Inbox Style
  5. Progress View
  6. With Actions
  7. Custom View
  8. With BackStack
  9. With Priority/Headsup (5.0+)
  10. On LockScreen (5.0+)
  11. Custom Background Color (5.0+)
  12. Media Style (5.0+)

 

1. Normal View
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, NotificationView.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

noti_normal2 noti_normal3 noti_normal4 noti_normal5 noti_normal6 noti_normal7 noti_onclick

Download_button

 

2. Big Picture Style
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, NotificationView.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

bigpic bigpic2 bigpic3

Download_button

 

3. Big Text Style
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, NotificationView.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

bigtext bigtext2 bigtext3

Download_button

 

4. Inbox Style
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, NotificationView.java and add following code :

Step 5 : Open AndroidManifest.xml and add following code :

ScreenShot:

inboxstyle inboxstyle2inboxstyle3

Download_button

 

6. Progress Style
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:

noti_pro noti_pro2 noti_pro3

Download_button

 

7. With Actions
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, NotificationView.java and add following code :

Step 5 : Open src -> package -> Create new class, NotificationCancel.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

ScreenShot:

noti_actions noti_action2

Download_button

 

5. Custom View
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> layout -> Create new xml file, notification_layout.xml and add following code :

Step 4 : Open src -> package -> MainActivity.java and add following code :

Step 5 : Open src -> package -> Create new class, NotificationView.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

ScreenShot:

noti_cust noti_cust2

Download_button

 

8. With BackStack
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open res -> layout -> Create new xml, notification_view.xml and add following code :

Step 4 : Open src -> package -> MainActivity.java and add following code :

Step 5 : Open src -> package -> Create new class, .java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

ScreenShot:
noti_stackbacknoti_stackback1noti_stackback2noti_stackback3noti_stackback4noti_stackback5noti_stackback6noti_stackback7noti_stackback8noti_stackback9Download SourceCode

 

9. With Priority/Headsup (5.0+)
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open AndroidManifest.xml and add following code :

ScreenShot:
noti_headup noti_headup4 noti_headup1 noti_headup2
Download SourceCode

 

10. On LockScreen (5.0+)
Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.
Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :