I'm using material3 on my android 12 device and it's working great. The last thing I want to do is allow my app icon to be styled by material you like all of googles apps do on android 12. Is that available somewhere?
The text was updated successfully, but these errors were encountered:
@RikkaW awesome. Thank you! Do you know if there's a way to have a fallback color (aka my usual colors) if the launcher doesn't support this? The way you have it setup, it looks like the only "check" is whether its api 31
@ColtonIdle There is no launcher that does not support this, since the icon is loaded through framework codes. Also, it's just a color reference, using color reference in drawable is available from very old versions of the Android system.
You have to learn how things work first. Apps can only provide one icon, there is no API for the app to provide a "themed icon". The "Themed icons" from Pixel launcher is its private implementation, the themed icon is provided by Pixel launher itself rather than the app.
I understand that you can only provide a single icon, but I thought that maybe there was a new resource qualifier like values-material3 or something, and if you were using a material3 compatible launcher, then it would choose that instead. The way you stated your answer originally seemed like this was the api to do it where it would use material you colors when available, and use the default colors when it wasn't available.