florent37 / ShapeOfView

Give a custom shape to any android view, Material Design 2 ready
Apache License 2.0
3.12k stars 400 forks source link

Fatal Exception: java.lang.OutOfMemoryError #21

Closed hoanganhtuan95ptit closed 5 years ago

hoanganhtuan95ptit commented 5 years ago

In the application development process I have this error:

at android.graphics.Bitmap.nativeCreate(Bitmap.java) at android.graphics.Bitmap.createBitmap(Bitmap.java:810) at android.graphics.Bitmap.createBitmap(Bitmap.java:787) at android.graphics.Bitmap.createBitmap(Bitmap.java:754) at com.github.florent37.shapeofview.manager.ClipPathManager.setClipPathCreator(Unknown Source) at com.github.florent37.shapeofview.ShapeOfView.init(Unknown Source) at com.github.florent37.shapeofview.ShapeOfView.onLayout(Unknown Source)

how can I solve it Thank you

hoanganhtuan95ptit commented 5 years ago

I am using version 1.0.7. I just noticed the new version change in your library, maybe it has fixed the relevance to bitmap. Thanks for your update

florent37 commented 5 years ago

yes, I removed the bitmaps on the new version, can you try it ?