Lines Matching full:adapter
139 if (mScope.adapter.getItemCount() == 0) {
162 * has a valid position in the adapter. It then automatically resets {@code mPendingFocusId}.
170 int pos = mScope.adapter.getModelIds().indexOf(mScope.pendingFocusId);
184 int pos = mScope.adapter.getModelIds().indexOf(modelId);
218 * @return The adapter position of the destination item. Could be RecyclerView.NO_POSITION.
225 return mScope.adapter.getItemCount() - 1;
254 if (currentPosition < mScope.adapter.getItemCount() - 1) {
297 * @return The adapter position of the target item.
323 int max = mScope.adapter.getItemCount() - 1;
332 * Requests focus for the item in the given adapter position, scrolling the RecyclerView if
342 * Requests focus for the item in the given adapter position, scrolling the RecyclerView if
547 * Builds a search index for finding items by title. Queries the model and adapter, so both
551 int itemCount = mScope.adapter.getItemCount();
554 String modelId = mScope.adapter.getModelId(i);
637 mScope.adapter = (DocumentsAdapter) view.getAdapter();
649 private @Nullable DocumentsAdapter adapter;