geftimov / android-pathview

Android view with both path from constructed path or from svg.
Apache License 2.0
2.91k stars 513 forks source link

A problem of Memory #17

Closed zhouhytx2010 closed 8 years ago

zhouhytx2010 commented 8 years ago

Hi, When I use the pathview, memory has been growing, how can I reduce the memory?

geftimov commented 8 years ago

Can you show screenshot of the Memory monitor in Android studio when using the library?

zhouhytx2010 commented 8 years ago

1.docx I have upload some pics in the word file 1.docx

zhouhytx2010 commented 8 years ago

I just play the svg file repeat

geftimov commented 8 years ago

It looks fine to me, not an expert on memory management , but the library : 1) Loads SVG in memory. 2) Get the path from the svg. 3) Animate the paths with proper percentage.

Plus starting the application and the activity I think the 9-11 MB or RAM are ok.

zhouhytx2010 commented 8 years ago

you try to quick click the pathview of this demo any times, you can discover the memory grows quickly. Should I do something to solve this problem?

geftimov commented 8 years ago

Ok I will investigate it.