October 2018
Intermediate to advanced
464 pages
15h 17m
English
Expanded notifications were introduced in Android 4.1 (API 16) and are available by using the setStyle() method on the Notification Builder. If the user's OS does not support expanded notifications, the notification will appear as a normal notification.
The three expanded styles currently available in the NotificationCompat library include the following:
Here's an example of each notification style, and the code used to create the example: