-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
I haven't played with this myself. I wonder if this is of interest? It's the official quickstart |
Beta Was this translation helpful? Give feedback.
-
I solved this problem by changing my app icon background color, it will get dominant color of app icon. |
Beta Was this translation helpful? Give feedback.
-
Finally found an explanation. @nurassyl stated that changing the app icon background color worked for him because it gets the dominant color and uses it. At first, I thought he was talking about the notification icon background (which should always be transparent according to guidelines), because he never replied to my question, but he was indeed talking about the main app icon (mipmap ic_launcher icons). As for the "dominant color" color statement, that is not entirely true. From my tests, it seems like it considers the most dominant non black or white color of your app icon (haven't tried with gray shades, but they might get ignored too). So if your app icon is a small yellow logo on a black background, even though the black is dominant, it will consider the logo's yellow color as the color to use for the heads-up notification background. In my case, I thought the problem had fixed itself by a possible software update because the logo color happened to be the same as the notification color stated in the manifest. For the "problematic" app (the one that made me start this discussion), the logo color of the app icon (blue) and the specified notification color (black) mismatched, hence why I would see a blue background in heads-up notifications, but a black color in the notification center. I hope the explanation and fix is clear to anyone that encounters this thread. |
Beta Was this translation helpful? Give feedback.
-
@piljac1 But if I want to use a white color in the background of my icon, how can I set it? |
Beta Was this translation helpful? Give feedback.
-
This is not related to the android system. Rather, it is related to the One UI system with the Samsung phone. One UI has a pop-up notification feature(even device user can customize/theme their notification color), and this system has quite a lots of bug. |
Beta Was this translation helpful? Give feedback.
Finally found an explanation.
@nurassyl stated that changing the app icon background color worked for him because it gets the dominant color and uses it. At first, I thought he was talking about the notification icon background (which should always be transparent according to guidelines), because he never replied to my question, but he was indeed talking about the main app icon (mipmap ic_launcher icons).
As for the "dominant color" color statement, that is not entirely true. From my tests, it seems like it considers the most dominant non black or white color of your app icon (haven't tried with gray shades, but they might get ignored too). So if your app icon is a small yellow logo on a …