current position:Home>Glide loading pictures leads to memory leakage

Glide loading pictures leads to memory leakage

2022-01-27 02:56:48 CSDN Q & A

glide Loading pictures , If before loading successfully ,imageView Removed , Memory leaks can occur
                Glide.with(context!!).load(url).into(imageView)                viewGroup.removeView(imageView)                // here imageview Will it be recycled 



Refer to the answer 1:

Why are you doing this 0.0.




Refer to the answer 2:



Refer to the answer 3:

You don't need to remove it imageview ah
Just promise viewgroup Just don't quote




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270256462233.html

Random recommended