Android: Question about Bitmaps, memory usage, and scaling

前端 未结 3 1819
野性不改
野性不改 2021-02-02 17:01

For readibility, I posted the code examples that my solutions refer to first, and thenI listed the explanations of my solutions in a numerical list.

I have been

3条回答
  •  离开以前
    2021-02-02 17:20

    The right approach is to decode for the size you need to show and subsample the image in tiles when you need to zoom.

    There's a library that should do exactly this, check it out: https://github.com/davemorrissey/subsampling-scale-image-view

提交回复
热议问题