Joel Denke
01/22/2024, 12:36 PMPablichjenkov
01/22/2024, 4:44 PMJoel Denke
01/22/2024, 4:45 PMJoel Denke
01/22/2024, 4:46 PMThe graphics preview in the layout editor may not be accurate:
- The current rendering only supports APIs up to 33. You may encounter crashes if using with higher APIs. To avoid, you can set a lower API for your previews. (Ignore for this session)
πJoel Denke
01/22/2024, 4:47 PMPablichjenkov
01/22/2024, 4:48 PMPablichjenkov
01/22/2024, 4:49 PMJoel Denke
01/22/2024, 4:50 PMJoel Denke
01/23/2024, 8:05 AMPablichjenkov
01/23/2024, 1:28 PMJoel Denke
01/23/2024, 2:52 PMJoel Denke
01/23/2024, 2:56 PMdata class MyPainter(val relativePath: String) : MyImageSource {
val painter: Painter
@Composable
get() {
if (LocalInspectionMode.current) {
return rememberVectorPainter(Icons.Default.Add)
}
return painterResource(relativePath)
}
}
I test do it like this for now, not sure if good πJoel Denke
01/23/2024, 2:56 PMPablichjenkov
01/23/2024, 3:07 PM