Android Notifications like Google Play Music
Notifications like that of Google Play Music offers more details and real estate to work with. However, it is available only from version Jellybean (API 16 and above). The documentation recommends using NotificationCompat.Builder API for fallback behavior on older API levels. The API levels can be handled at runtime and this blog is about posting a custom layout as an expanded view just like Google Play Music. First, lets create a custom layout for our own style needs, Now that we have a layout, we just have to inflate it and associate it with the Notification API. In case of NotificationManager, inflation of custom layouts is handled by RemoteViews. NotificationCompat.Builder builder = new NotificationCompat.Builder(this) ...