Programming/Android
Glide 관련 이슈(centerCrop, context)
ND Paul Kim
2017. 6. 15. 18:37
Center crop is not always working
Center crop is not working properly 등으로 찾아봄
https://github.com/bumptech/glide/issues/613
분명 centerCrop을 했는데도 이게 적용되었다가 혹은 한번에 안되고 스크롤을하면 centerCrop이 적용되는 문제다
해결법이 좀 황당하기도 하고 쉬운편인데 ㅋㅋㅋ
1. 코드로 centerCrop주던걸 지우고 layout에서 scaleType에 centerCrop선택
2. width 하고 height에 match로 할 것
이러면 해결!
You cannot start a load for a destroyed activity
찾아보니 글라이드에서 발생하는 이슈란다
with() 여기에 context를 넣는데 getApplicationContext()를 넣어주면 사라진다고 함