Open T8RIN opened 8 months ago
Do you use ConstraintLayout?
Nope
Can you tell me how to reproduce this? I tried to show 8k image and my app crashed but the exception was different as yours.
java.lang.RuntimeException: Canvas: trying to draw too large(162915712bytes) bitmap.
Maybe 1/4000
I recommend a similar image zooming library ZoomImage (https://github.com/panpf/zoomimage).
It perfectly supports Compose Multiplatform and Android View, supports zooming, panning, positioning, rotation, and subsampling of large images. It also integrates image loaders such as sketch, glide, picasso, coil, etc.
The most important thing is that it can zoom large images without memory overflow
This is good, only for images tho, i will look
This is good, only for images tho, i will look
No, it also works for any Compose component, such as Box, Text, please refer to the documentation: https://github.com/panpf/zoomimage/blob/main/docs/wiki/modifier_zoom.md