Deletion of drawing cache

后端 未结 2 1054
北恋
北恋 2021-01-21 11:24

In my app I want to swap images at runtime when user clicks on it.

there are two imageviews when user click on first image and then click on second image at the

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-21 11:57

    use bitmap.recycle(); before valuating your bitmaps to clear their cache before recreating it.

提交回复
热议问题