I'm using a LinearLayoutManager
to create a horizontally aligned RecyclerView
. Since I'm drawing out of the items' bounds, the overlapping drawings from the outer left and right neighbors disappear during scrolling because the views get recycled.
Is there a way to instruct the Adapter or LayoutManager to always keep x + 2
views?
I expected RecyclerView.setItemViewCacheSize( int size )
to solve this for me, but the views still appear to be detached.