0

This weather app has an interesting notification type:

  1. It's always expanded. Always.
  2. There's no decoration/borders
  3. It doesn't have rounded edges

Despite a lot of trying I failed to find out how to create such a notification. Does anybody know how it's called or could link to the relevant documentation or sample?

enter image description here

leuk98743
  • 131
  • 7

1 Answers1

0

Here are 2 SO posts that may help you:

Is possible set Expanded Notification as default in Big Text Notifications?

Custom notification layout gives unnecessary margin

To set a notification as expanded in defualt you can do this

.setStyle(new NotificationCompat.BigTextStyle().bigText(th_alert))

to the notification

and for the next 2 queries you can implement a custom notification and then remove all the styles and add your own

DevHyperCoder
  • 895
  • 1
  • 9
  • 22
  • Not sure what you mean. 2 queries? Do mean making the notification visible and then replacing it with another one of a different style? – leuk98743 Aug 14 '20 at 09:14
  • Regarding the links: I'm already using PRIORITY_MAX. But here has to be something else. No matter in which order I trigger the notifications, that weather app is *always* above my notification. And thus *always* expanded. – leuk98743 Aug 14 '20 at 09:16