public class AbsHListView.RecycleBin
extends java.lang.Object
| Constructor and Description |
|---|
AbsHListView.RecycleBin() |
| Modifier and Type | Method and Description |
|---|---|
void |
addScrapView(android.view.View scrap,
int position)
Put a view into the ScrapViews list.
|
void |
clear()
Clears the scrap heap.
|
void |
fillActiveViews(int childCount,
int firstActivePosition)
Fill ActiveViews with all of the children of the AbsListView.
|
android.view.View |
getActiveView(int position)
Get the view corresponding to the specified position.
|
void |
markChildrenDirty() |
void |
removeSkippedScrap()
Finish the removal of any views that skipped the scrap heap.
|
void |
scrapActiveViews()
Move all views remaining in mActiveViews to mScrapViews.
|
void |
setViewTypeCount(int viewTypeCount) |
boolean |
shouldRecycleViewType(int viewType) |
public void setViewTypeCount(int viewTypeCount)
public void markChildrenDirty()
public boolean shouldRecycleViewType(int viewType)
public void clear()
public void fillActiveViews(int childCount,
int firstActivePosition)
childCount - The minimum number of views mActiveViews should holdfirstActivePosition - The position of the first view that will be stored in mActiveViewspublic android.view.View getActiveView(int position)
position - The position to look up in mActiveViewspublic void addScrapView(android.view.View scrap,
int position)
scrap - The view to addpublic void removeSkippedScrap()
public void scrapActiveViews()