GDG-Korea / PinterestLikeAdapterView

[Deprecated] An Android multi column list view like Pinterest.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiColumnListView eating alot of memory

lordzden opened this issue · comments

The grow heap is accumulating, and eventually the app goes OOM , after 6 or more orientation change. How do I prevent the memory leak? Thanks

 @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
        gView = inflater.inflate(R.layout.ac_image_grid, container, false);

        listView = (MultiColumnListView ) gView.findViewById(R.id.list);

}

From Memory Analyzing Tool of Eclipse:

One instance of "com.huewu.pla.lib.MultiColumnListView" loaded by "dalvik.system.PathClassLoader @ 0x4123d2f8" occupies 4,195,712 (27.91%) bytes. The memory is accumulated in one instance of "android.view.View[]" loaded by "<system class loader>".

Keywords:
dalvik.system.PathClassLoader @ 0x4123d2f8
android.view.View[]
com.huewu.pla.lib.MultiColumnListView