Title: Is it possible to lock an adapter's data during layout or draw passes?
Tags: android;android-adapter
Question: I have a view adapter that accesses a collection. I would like to lock the collection for the duration of any layout phases, or phases when getView might be called. I do not want to lock per access.
My question is, are there view callbacks available on the view or the adapter that I can hook into to lock my data collection?
Comment: IMO the operation should block

Comment: What should happen while the Adapter is locked and value in the adapter should be changed? Should the change be queued or rejected or...



{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 0, 'CommentCount': 2, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:09/18/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<android><android-adapter>', 'Title': "Is it possible to lock an adapter's data during layout or draw passes?", 'ViewCount': 56, 'id': 18878407, 'user_AboutMe': None, 'user_AccountId': 61441.0, 'user_DisplayName': 'MM.', 'user_Reputation': 4154.0, 'user_Views': 331.0, 'user_id': 183123.0}}