tigerjj / FasterAnimationsContainer

Frame Animation with Drawable without OutOfMemory
84 stars 32 forks source link

why singleton? #3

Open fbngrm opened 9 years ago

fbngrm commented 9 years ago

hi, I'd like to know why it is neccessary to use a singleton to implement this. I'd like to have two animated imageviews in a scrollview. how to achieve this? thanks

tigerjj commented 9 years ago

@fgrimme I designed this class to avoid "out of memory", that's why i did use singleton pattern not to hold many images at once. You can remove singleton and then be careful not to hold several images simultaneously.

fbngrm commented 9 years ago

thanks for your answer, i removed the singleton.

baji841 commented 8 years ago

where to change code suppose. i have multiple animated images.