I have a NestedScrollView
, it contains a RecyclerView
wrap_content
:
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content" />
LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
layoutManager.setAutoMeasureEnabled(true);
rvStream.setLayoutManager(layoutManager);
rvStream.setNestedScrollingEnabled(false);
And when I use it to load list of images (using picasso), I got memory leak:
java.lang.OutOfMemoryError: Failed to allocate a 24 byte allocation with 0 free bytes and -3040B until OOM
How to avoid it, I'm also using lazy loading