According to <https://developer.android.com/develo...
# compose
m
According to https://developer.android.com/develop/ui/compose/graphics/images/material we are supposed to download icons for compose apps from https://fonts.google.com/icons as Android xml icons. But when I do so and use them in my multiplatform compose app I only get an error message because compose multiplatform cannot handle the
android:fillColor="@android:color/white"
contained in them. I always have to replace that manually with something like
android:fillColor="#FFFFFF"
which is a PITA. Does anybody have a better idea how to deal with that or is this just a bug which should be fixed?
f
m
@florent That’s a valid option but a completely different approach. It circumvents the whole resource loading logic that you would normally use and replaces it with some externally generated source code. That’s an approach I have used in the past but do not want to follow again.
s
Generally speaking, these are very Android specific (and are provided by the Android OS), I'd personally expect them to not be supported in multiplatform resources. But maybe the Compose team has other ideas, and would support that to streamline the DX instead of focusing on "purity"
2