Searched refs:optScrap (Results 1 - 1 of 1) sorted by relevance

/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java1221 * Obtain a populated view from the adapter. If optScrap is non-null and is not
1225 * @param optScrap Optional scrap view; will be reused if possible
1226 * @return A new view, a recycled view from mRecycler, or optScrap
1228 final View obtainView(int position, View optScrap) { argument
1234 // Reuse optScrap if it's of the right type (and not null)
1235 final int optType = optScrap != null ?
1236 ((LayoutParams) optScrap.getLayoutParams()).viewType : -1;
1239 optScrap : mRecycler.getScrapView(positionViewType);

Completed in 33 milliseconds