Lines Matching refs:adapter

52      * the adapter does not want the item's view recycled.
147 * The position within the adapter's data set of the item to select
159 * The position within the adapter's data set of the currently selected item.
175 * The number of items in the current adapter.
181 * The number of items in the adapter before a data changed event occurred.
187 * number of items in the current adapter.
266 * will be a view provided by the adapter)
267 * @param position The position of the view in the adapter.
297 * @param position The position of the view in the adapter.
375 * @param position The position of the view in the adapter
383 * or when the adapter becomes empty.
426 * The position in the adapter for which the context menu is being
438 * Returns the adapter currently associated with this widget.
440 * @return The adapter used to provide this view's content.
445 * Sets the adapter that provides the data and the views to represent the data
448 * @param adapter The adapter to use to create this view's content.
450 public abstract void setAdapter(T adapter);
546 * Return the position of the currently selected item within the adapter's data set
575 T adapter = getAdapter();
577 if (adapter != null && adapter.getCount() > 0 && selection >= 0) {
578 return adapter.getItem(selection);
595 * Get the position within the adapter's data set for the view, where view is a an adapter item
596 * or a descendant of an adapter item.
598 * @param view an adapter item, or a descendant of an adapter item. This must be visible in this
600 * @return the position within the adapter's data set of the view, or {@link #INVALID_POSITION}
628 * Returns the position within the adapter's data set for the first item
631 * @return The position within the adapter's data set
638 * Returns the position within the adapter's data set for the last item
641 * @return The position within the adapter's data set
656 * Sets the view to show if the adapter is empty
668 final T adapter = getAdapter();
669 final boolean empty = ((adapter == null) || adapter.isEmpty());
674 * When the current adapter is empty, the AdapterView can display a special view
678 * @return The view to show if the adapter is empty.
696 final T adapter = getAdapter();
697 final boolean empty = adapter == null || adapter.getCount() == 0;
709 final T adapter = getAdapter();
710 final boolean empty = adapter == null || adapter.getCount() == 0;
721 final T adapter = getAdapter();
722 final boolean empty = adapter == null || adapter.getCount() == 0;
730 updateEmptyStatus((adapter == null) || adapter.isEmpty());
755 // the state of the adapter.
772 T adapter = getAdapter();
773 return (adapter == null || position < 0) ? null : adapter.getItem(position);
777 T adapter = getAdapter();
778 return (adapter == null || position < 0) ? INVALID_ROW_ID : adapter.getItemId(position);
788 * Override to prevent freezing of any views created by the adapter.
796 * Override to prevent thawing of any views created by the adapter.
983 T adapter = getAdapter();
984 if (adapter != null) {
985 final int itemCount = adapter.getCount();
1081 * Searches the adapter for a position matching mSyncRowId. The search starts at mSyncPosition
1127 // we need the adapter
1128 T adapter = getAdapter();
1129 if (adapter == null) {
1134 rowId = adapter.getItemId(seed);
1224 T adapter = getAdapter();
1225 if (mFirstPosition >= 0 && mFirstPosition < adapter.getCount()) {
1226 mSyncRowId = adapter.getItemId(mFirstPosition);