Home | History | Annotate | Download | only in widget

Lines Matching refs:adapter

36  * An AdapterView is a view whose children are determined by an {@link Adapter}.
42 public abstract class AdapterView<T extends Adapter> extends ViewGroup {
45 * The item view type returned by {@link Adapter#getItemViewType(int)} when
46 * the adapter does not want the item's view recycled.
51 * The item view type returned by {@link Adapter#getItemViewType(int)} when
141 * The position within the adapter's data set of the item to select
153 * The position within the adapter's data set of the currently selected item.
169 * The number of items in the current adapter.
175 * The number of items in the adapter before a data changed event occured.
181 * number of items in the current adapter.
247 * will be a view provided by the adapter)
248 * @param position The position of the view in the adapter.
276 * @param position The position of the view in the adapter.
349 * @param position The position of the view in the adapter
357 * or when the adapter becomes empty.
400 * The position in the adapter for which the context menu is being
412 * Returns the adapter currently associated with this widget.
414 * @return The adapter used to provide this view's content.
419 * Sets the adapter that provides the data and the views to represent the data
422 * @param adapter The adapter to use to create this view's content.
424 public abstract void setAdapter(T adapter);
520 * Return the position of the currently selected item within the adapter's data set
549 T adapter = getAdapter();
551 if (adapter != null && adapter.getCount() > 0 && selection >= 0) {
552 return adapter.getItem(selection);
559 * @return The number of items owned by the Adapter associated with this
569 * Get the position within the adapter's data set for the view, where view is a an adapter item
570 * or a descendant of an adapter item.
572 * @param view an adapter item, or a descendant of an adapter item. This must be visible in this
574 * @return the position within the adapter's data set of the view, or {@link #INVALID_POSITION}
602 * Returns the position within the adapter's data set for the first item
605 * @return The position within the adapter's data set
612 * Returns the position within the adapter's data set for the last item
615 * @return The position within the adapter's data set
630 * Sets the view to show if the adapter is empty
635 final T adapter = getAdapter();
636 final boolean empty = ((adapter == null) || adapter.isEmpty());
641 * When the current adapter is empty, the AdapterView can display a special view
645 * @return The view to show if the adapter is empty.
663 final T adapter = getAdapter();
664 final boolean empty = adapter == null || adapter.getCount() == 0;
676 final T adapter = getAdapter();
677 final boolean empty = adapter == null || adapter.getCount() == 0;
688 final T adapter = getAdapter();
689 final boolean empty = adapter == null || adapter.getCount() == 0;
697 updateEmptyStatus((adapter == null) || adapter.isEmpty());
722 // the state of the adapter.
739 T adapter = getAdapter();
740 return (adapter == null || position < 0) ? null : adapter.getItem(position);
744 T adapter = getAdapter();
745 return (adapter == null || position < 0) ? INVALID_ROW_ID : adapter.getItemId(position);
755 * Override to prevent freezing of any views created by the adapter.
763 * Override to prevent thawing of any views created by the adapter.
984 * Searches the adapter for a position matching mSyncRowId. The search starts at mSyncPosition
1030 // we need the adapter
1031 T adapter = getAdapter();
1032 if (adapter == null) {
1037 rowId = adapter.getItemId(seed);
1127 T adapter = getAdapter();
1128 if (mFirstPosition >= 0 && mFirstPosition < adapter.getCount()) {
1129 mSyncRowId = adapter.getItemId(mFirstPosition);