I have an app icon with transparent background. I have 2 variants: black and white.
The issue I have found is that some android phone menu screens have a black background, while some others have a white background.
Therefore the issue I have is that my logo looks invisible on certain phones no matter which i pick.
How do I solve this problem?
Is there a way to use the dark or light variant depending on the theme?
Related
I am new to app shortcuts in Android. I am using ShortcutInfo.Builder for that.
I also set an icon with the SetIcon function. But the icon is always (at least on Pixel devices) displayed over a white circle, so I have to specify a dark icon for it to be visible. Is this white circle an standard for Android? Could other launchers have a different color? I am afraid of tinting the icon to always dark and then find devices where it has to be light.
In the pixel device I have tested, it doesn't matter if it is Day or Night mode, the circle around the shortcut icon is always white and the icon must be dark if you want it to be seen.
Update:
I testes with a Huawei and shortcuts are transparent.
I found that some apps icons on google play are changing their background colour based on whether dark theme is enabled or not like in the photos below.
Any ideas how to implement this?
Light mode icon
Dark mode icon
This is based on a transparent background you can define making your app icon.
Probably you remember you need to set a foreground (often the symbol, here the pocket) and also a background. If you use a transparent background, it will get a greyish black in darkmode and a white in light mode ("whitemode").
It's an optical illusion.
You could check it if you would have the app and set a custom screen wallpaper on your phone, for example with particles. Those would shine through the app icon background.
Probably your idea is posible in the future, I haven't heard about it yet. Cheers!
I have an issue where the font color in a screen of my app changes from white to almost gray. After hours of experimenting I was able to find out that this is caused by Android's auto-dimming feature.
A page of mine starts of as a pretty dark background with a spinner. When data is fetched have plenty cards onscreen(all with white background).
This leads the color of the font in my header to change form grayish to (as intended) white. The change is extreme and very noticeable.
Is there a way to turn off this feature?
My android app icon is a png image with a transparent background. In the image asset configuration IN ANDROID STUDIO, I set its shape to be NONE. However still, whenever the app is installed on my device, a purple square background is present. However on another version of android, the app icon background is transparent. How do I remove it? Can somebody please shed some light?
I tried Android Studio's Theme Editor today and got some warnings from it.
According to the material design guidelines, I should use 500 as the primary colors but why is that the Theme Editor says that my primary color (Material Light Blue 500) doesn't have enough contrast with my textColorPrimary(#ffffff)? I also think that by not having the correct colors, my app title gets a black color on the recent apps screen which should be white.
The text color in Recent apps gets computed automatically from background. The same algorithm is used to generate the warning in theme editor. When you look at the Light Blue 500 color you see Google suggests using black text over it.
You're free to use white text color in your app despite the warning but you can't change the Recent apps screen behavior.