Stay organized with collections
Save and categorize content based on your preferences.
AbsListView.RecyclerListener
public
static
interface
AbsListView.RecyclerListener
android.widget.AbsListView.RecyclerListener
|
A RecyclerListener is used to receive a notification whenever a View is placed
inside the RecycleBin's scrap heap. This listener is used to free resources
associated to Views placed in the RecycleBin.
Summary
Public methods |
abstract
void
|
onMovedToScrapHeap(View view)
Indicates that the specified View was moved into the recycler's scrap heap.
|
Public methods
onMovedToScrapHeap
public abstract void onMovedToScrapHeap (View view)
Indicates that the specified View was moved into the recycler's scrap heap.
The view is not displayed on screen any more and any expensive resource
associated with the view should be discarded.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# AbsListView.RecyclerListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nAbsListView.RecyclerListener\n============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/AbsListView.RecyclerListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nAbsListView.RecyclerListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------|\n| android.widget.AbsListView.RecyclerListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA RecyclerListener is used to receive a notification whenever a View is placed\ninside the RecycleBin's scrap heap. This listener is used to free resources\nassociated to Views placed in the RecycleBin. \n**See also:**\n\n- [AbsListView.setRecyclerListener(android.widget.AbsListView.RecyclerListener)](/reference/android/widget/AbsListView#setRecyclerListener(android.widget.AbsListView.RecyclerListener))\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onMovedToScrapHeap](/reference/android/widget/AbsListView.RecyclerListener#onMovedToScrapHeap(android.view.View))`(`[View](/reference/android/view/View)` view) ` Indicates that the specified View was moved into the recycler's scrap heap. |\n\nPublic methods\n--------------\n\n### onMovedToScrapHeap\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onMovedToScrapHeap (View view)\n```\n\nIndicates that the specified View was moved into the recycler's scrap heap.\nThe view is not displayed on screen any more and any expensive resource\nassociated with the view should be discarded.\n\n\u003cbr /\u003e"]]