参考: https://blog.csdn.net/qq_30711091/article/details/80750078
- 在view中设置tag
- 根据iv.tag判断
- 在Application中配置
ViewTarget.setTagId(R.id.glide_tag)
- 在values中添加ids.xml
<item name="glide_tag" type="id"/>
- 使用Glide加载选择后的图片之后,给该图片设置一个新的tag
- 判断图片的tag与在布局中设置的tag是否一致,即可判断图片有没有被替换