You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
As I told, the reason is NOT capture screenshot because it already recycled.
I just know that the reason is: Each call getView(), one instance of convertView is allocated in memory so: flip -> getView() -> create new convertView -> ... -> OOM.
Solution 1: change FlipViewController to use: getViewTypeCount() and getItemViewType() like ListView (more info here http://android.amberfog.com/?p=296)
Solution 2: change YourAdapter to cache some View with different type and reuse View when item have same type.
I'm using solution 2 and when i show log heap size to check the memory, the result is good. And since I used this solution, I have never encountered an OOM error.
eg, to use a default texture if FlipView failed to capture screenshots caused by OOM errors
The text was updated successfully, but these errors were encountered: