Compose MP Resources Question - Drawables :white_c...
# compose
a
Compose MP Resources Question • Drawables • Strings • Fonts • Files (for use in coil) I have set:
Copy code
compose.resources {
    publicResClass = true
    generateResClass = always
}
IntelliJ Project Explorer shows styled icons for all of them except files. Custom fonts went smoothly, I expected Files to be no different. What am I missing?? Thanks.
w
That looks like it should work. How are you loading the files?
a
Just via
Res.
references I can open the generated class just fine
w
Files don't get generated Res fields. They're accessed via path name.
a
ah, so some Image / Icon constructor with something like a
$resource-root$ + "./files/kilo.png
as a argument? (Making up code there)