sreekumar_droid
04/19/2023, 9:00 PMayodele
04/19/2023, 9:30 PMpainterResource
Magdalena Tsolaki
04/19/2023, 10:22 PMsreekumar_droid
04/19/2023, 10:41 PMpainterResource
doesn't take drawable resource IDMagdalena Tsolaki
04/20/2023, 6:31 AMStefan Oltmann
04/20/2023, 9:20 AMimplementation(compose.components.resources)
you can use it this way:
Image(
painter = painterResource("blubb.xml"),
contentDescription = null
)
I'm sure that moko-resource is a great library to handle that, but I always try to keep my dependencies to a minimum. Therefore a Gradle task will copy my resources.sreekumar_droid
04/20/2023, 5:48 PMsreekumar_droid
04/21/2023, 2:28 AMpublic expect object MR {
public object strings : ResourceContainer<StringResource>
public object plurals : ResourceContainer<PluralsResource>
public object images : ResourceContainer<ImageResource>
public object fonts : ResourceContainer<FontResource>
public object files : ResourceContainer<FileResource>
public object colors : ResourceContainer<ColorResource>
public object assets : ResourceContainer<AssetResource>
}
Anum Amin
05/14/2023, 8:36 PMStefan Oltmann
05/14/2023, 8:58 PMAnum Amin
05/14/2023, 9:37 PMStefan Oltmann
05/15/2023, 6:21 AMAnum Amin
05/15/2023, 7:53 AMStefan Oltmann
05/15/2023, 7:54 AMAnum Amin
05/15/2023, 7:55 AM