Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a notification similar to Play Music app from Google

Tags:

android

I'm trying to create a notification that is very similar to what the "Play Music" app from Google uses.

Play Music app notification

Few questions that hopefully someone can answer.

  1. Is this notification done with custom RemoteViews?
  2. Is the X for closing the widget part of the NotificationCompat.Builder APIs? or simply part of a custom RemoteView?
  3. If it is all custom views how can I set a custom RemoteView for minimized and maximized states?
like image 798
Jona Avatar asked Jan 24 '13 18:01

Jona


People also ask

What is the Android notification sound called?

In this case, it's called Chime–Pixel Sounds. If you're using a non-Pixel phone, your ringtone options will be different.


1 Answers

Yes, all of that is done with custom RemoteViews. You'll see in the docs for Notification, there's a field for bigContentView along with contentView.

like image 168
kabuko Avatar answered Oct 17 '22 16:10

kabuko