I am developing a simple Android app and I'm trying to build a notification exactly like Google weather looks like on Android Oreo:
I had a look on the official Android docs (https://developer.android.com/training/notify-user/expanded#java) but I haven't found exactly what I need.
Is the grayed out notification something specific to system background processes? Can someone please provide a hint regarding this notification style type (especially on the expanded thing)?
Many thanks!
What you need to do is create a Notification Channel
with its priority
set to IMPORTANCE_MIN
, then use that channel to create your notification.
Check this for more explanation.