Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

SimpleCollectionView can not reuse cells #59

Closed
trunghaiy opened this issue Jun 30, 2015 · 2 comments
Closed

SimpleCollectionView can not reuse cells #59

trunghaiy opened this issue Jun 30, 2015 · 2 comments
Assignees

Comments

@trunghaiy
Copy link

According to this guide from Xamarin's guide, I think the sample with SimpleCollectionView should reuses cell but it doesn't.

I ran the demo with flowLayout, it always call to AnimalCell' constructor to init new Cell instead of reuse from reusable cell.

@olegoid
Copy link
Contributor

olegoid commented Nov 13, 2015

@KMullins-Xam could you please check this issue, since this is something related to guides and documentation.

@rzaitov
Copy link

rzaitov commented Feb 17, 2017

I run this sample and it has a simple circle layout with 21 cell on a screen.
There is no way to reuse the cells because all cell are on the screen (all 21 instance of the cell have to be created in order to be displayed on the screen).

img_0255

Cell reusing is comming into the play when your screen shows just a fraction of the data. Imagine that you have some data source with lots of data items, but your collection view (or table view) just shows a dozen of items, so when you scroll (if your collectionView layout allows you to do this) some cells will become invisible, so they can be reused by CollectionView.

With respect to the date of the question I tend to think that this answer is kind of irrelevant to you, so I just leave it here for historical reasons.

@rzaitov rzaitov closed this as completed Feb 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants