vinc3m1 / RoundedImageView

A fast ImageView that supports rounded corners, ovals, and circles.
Other
6.44k stars 1.25k forks source link

Out of Memory Error in resolveBackgroundResource #255

Closed aligokdemir closed 4 years ago

aligokdemir commented 4 years ago

com.makeramen.roundedimageview.RoundedImageView.resolveBackgroundResource (RoundedImageView.java:307)

this line gives out of memory error.

vinc3m1 commented 4 years ago

Not helpful without a full stacktrace.

You're probably using a non-bitmap drawable (e.g. vector drawble) which causes RIV to convert to a bitmap and uses a lot of memory, or your underlying bitmap is too large and would be causing an OOM anyway even with a regular ImageView. It's not recommended to use RIV with non-bitmap drawbles.