aboutsummaryrefslogtreecommitdiff
path: root/notification/CustomNotifications/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'notification/CustomNotifications/README.md')
-rw-r--r--notification/CustomNotifications/README.md32
1 files changed, 28 insertions, 4 deletions
diff --git a/notification/CustomNotifications/README.md b/notification/CustomNotifications/README.md
index 99b732e9..b7472529 100644
--- a/notification/CustomNotifications/README.md
+++ b/notification/CustomNotifications/README.md
@@ -1,15 +1,39 @@
+
Android CustomNotifications Sample
-==============================
+===================================
This sample demonstrates notifications with custom content views.
+The use of collapsed and expanded notification views are shown.
+
+Introduction
+------------
+
+This sample demonstrates notifications with custom content views. It
+also demonstrates the expanded notification introduced in API level 16.
+
+This sample shows all the required steps to create and display custom
+notifications:
+
+- Create Intent to launch Activity when notification is clicked.
+- Define custom layouts for collapsed and expanded views.
+- Use NotificationManager's notify to show notification.
+
+In the sample, click on the "SHOW NOTIFICATION" button to create
+a notification. Use two-fingered gestures up and down to collapse
+and expand the notification.
Pre-requisites
--------------
-- Android SDK v20
-- Android Build Tools v20
+- Android SDK v23
+- Android Build Tools v22.0.1
- Android Support Repository
+Screenshots
+-------------
+
+<img src="screenshots/main-notification.png" height="400" alt="Screenshot"/> <img src="screenshots/notification.png" height="400" alt="Screenshot"/>
+
Getting Started
---------------
@@ -40,7 +64,7 @@ file to you 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
+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