/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
H A D | ActionBar.java | 312 * Set the adapter and navigation callback for list navigation mode. 314 * The supplied adapter will provide views for the expanded list as well as 320 * @param adapter An adapter that will provide views both to display 331 public abstract void setListNavigationCallbacks(SpinnerAdapter adapter, argument
|
H A D | AlertDialog.java | 549 * @param adapter The {@link ListAdapter} to supply the list of items 553 public Builder setAdapter(final ListAdapter adapter, final OnClickListener listener) { argument 554 P.mAdapter = adapter; 760 * @param adapter The {@link ListAdapter} to supply the list of items 769 public Builder setSingleChoiceItems(ListAdapter adapter, int checkedItem, argument 771 P.mAdapter = adapter;
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/app/ |
H A D | ToolbarActionBar.java | 199 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument 200 mDecorToolbar.setDropdownParams(adapter, new NavItemSelectedListener(callback));
|
H A D | WindowDecorActionBar.java | 1237 public void setListNavigationCallbacks(SpinnerAdapter adapter, OnNavigationListener callback) { argument 1238 mDecorToolbar.setDropdownParams(adapter, new NavItemSelectedListener(callback));
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
H A D | DecorToolbar.java | 78 void setDropdownParams(SpinnerAdapter adapter, AdapterView.OnItemSelectedListener listener); argument
|
H A D | ToolbarWidgetWrapper.java | 538 public void setDropdownParams(SpinnerAdapter adapter, argument 541 mSpinner.setAdapter(adapter); 549 "Can't set dropdown selected position without an adapter");
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | AppCompatSpinner.java | 375 public void setAdapter(SpinnerAdapter adapter) { argument 379 mTempAdapter = adapter; 383 super.setAdapter(adapter); 387 mPopup.setAdapter(new DropDownAdapter(adapter, popupContext.getTheme())); 522 private int compatMeasureContentWidth(SpinnerAdapter adapter, Drawable background) { argument 523 if (adapter == null) { 538 final int end = Math.min(adapter.getCount(), start + MAX_ITEMS_MEASURED); 542 final int positionType = adapter.getItemViewType(i); 547 itemView = adapter.getView(i, itemView, this); 577 * Creates a new ListAdapter wrapper for the specified adapter 583 DropDownAdapter(@ullable SpinnerAdapter adapter, @Nullable Resources.Theme dropDownTheme) argument 709 setAdapter(ListAdapter adapter) argument [all...] |
H A D | ListPopupWindow.java | 250 * Sets the adapter that provides the data and the views to represent the data 253 * @param adapter The adapter to use to create this window's content. 255 public void setAdapter(ListAdapter adapter) { argument 261 mAdapter = adapter; 263 adapter.registerDataSetObserver(mObserver); 772 * Perform an item click operation on the specified list adapter position. 783 final ListAdapter adapter = list.getAdapter(); 784 mItemClickListener.onItemClick(list, child, position, adapter.getItemId(position)); 884 final ListAdapter adapter [all...] |
H A D | SearchView.java | 720 * and not when using a custom adapter. 745 * You can set a custom adapter if you wish. Otherwise the default adapter is used to 750 public void setSuggestionsAdapter(CursorAdapter adapter) { argument 751 mSuggestionsAdapter = adapter; 757 * Returns the adapter used for suggestions, if any. 758 * @return the suggestions adapter 1096 // attach the suggestions adapter, if suggestions are available
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 86 * to a <em>position</em> within the adapter.</li> 87 * <li><em>Recycle (view):</em> A view previously used to display data for a specific adapter 94 * by the adapter if the view was considered <em>dirty</em>.</li> 95 * <li><em>Dirty (view):</em> A child view that must be rebound by the adapter before 103 * calculation. This saves LayoutManager from tracking adapter changes to calculate animations. 111 * <li>adapter position: Position of an item in the adapter. This is the position from 115 * These two positions are the same except the time between dispatching <code>adapter.notify* 129 * work with up-to-date adapter positions even if they may not have been reflected to layout yet. 130 * For example, if you want to access the item in the adapter o 787 swapAdapter(Adapter adapter, boolean removeAndRecycleExistingViews) argument 803 setAdapter(Adapter adapter) argument 819 setAdapterInternal(Adapter adapter, boolean compatibleWithPrevious, boolean removeAndRecycleViews) argument 4227 attach(Adapter adapter) argument [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/util/ |
H A D | SortedListAdapterCallback.java | 34 * @param adapter The Adapter instance which should receive events from the SortedList. 36 public SortedListAdapterCallback(RecyclerView.Adapter adapter) { argument 37 mAdapter = adapter;
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | BaseRecyclerViewInstrumentationTest.java | 99 void setAdapter(final RecyclerView.Adapter adapter) throws Throwable { argument 103 mRecyclerView.setAdapter(adapter); 114 void swapAdapter(final RecyclerView.Adapter adapter, argument 120 mRecyclerView.swapAdapter(adapter, removeAndRecycleExistingViews); 191 final RecyclerView.Adapter adapter = mRecyclerView.getAdapter(); 192 if (adapter instanceof AttachDetachCountingAdapter) { 193 ((AttachDetachCountingAdapter) adapter).getCounter() 273 + " adapter position unless it is removed : " + vh, 461 assertSame("item position in LP should match adapter value :" + vh, 652 * For example, if adapter ha [all...] |
H A D | LinearLayoutManagerTest.java | 164 config.adapter(new TestAdapter(adapterSize) { 644 final TestAdapter adapter = new TestAdapter(300) { 657 .adapter(adapter), true); 687 adapter.addAndNotify(15, 1); 697 adapter.addAndNotify(5 + (i % 3) * 3, 1); 792 // set a new adapter with huge items to test full bounds check 1037 // use the same adapter for Rect matching 1150 assertNotNull(message + ":\nItem with same adapter index should be visible " + 1577 Config adapter(TestAdapte argument [all...] |
H A D | RecyclerViewAnimationsTest.java | 166 TestAdapter adapter = new TestAdapter(1) { 176 setupBasic(1, 0, 1, adapter); 296 TestAdapter adapter = new TestAdapter(50) { 303 adapter.setHasStableIds(true); 304 setupBasic(50, 3, 5, adapter); 599 final TestAdapter adapter = new TestAdapter(1000) { 607 setupBasic(1000, 10, 20, adapter); 630 adapter.addAndNotify(15, 1); 668 final TestAdapter adapter = new TestAdapter(itemCount) { 674 adapter 1165 positionStatesTest(int itemCount, int firstLayoutStartIndex, int firstLayoutItemCount,TestAdapter adapter, AdapterOps adapterChanges, final PositionConstraint... constraints) argument 1669 run(TestAdapter adapter) argument 1700 adapter, enum constant in enum:RecyclerViewAnimationsTest.PositionConstraint.Type 1732 public static PositionConstraint adapter(int position) { method in class:RecyclerViewAnimationsTest.PositionConstraint [all...] |
H A D | RecyclerViewLayoutTest.java | 142 TestAdapter adapter = new TestAdapter(100); 143 recyclerView.setAdapter(adapter); 205 TestAdapter adapter = new TestAdapter(100); 206 recyclerView.setAdapter(adapter); 260 TestAdapter adapter = new TestAdapter(100); 261 recyclerView.setAdapter(adapter); 303 TestAdapter adapter = new TestAdapter(100); 304 recyclerView.setAdapter(adapter); 443 TestAdapter adapter = new TestAdapter(100); 444 recyclerView.setAdapter(adapter); 606 setupBasic(RecyclerView recyclerView, TestLayoutManager tlm, TestAdapter adapter, boolean waitForFirstLayout) argument 3204 run(TestAdapter adapter) argument [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | TabLayout.java | 589 final PagerAdapter adapter = viewPager.getAdapter(); 590 if (adapter == null) { 594 // First we'll add Tabs, using the adapter's page titles 595 setTabsFromPagerAdapter(adapter); 604 if (adapter.getCount() > 0) { 619 * @param adapter the adapter to populate from 621 public void setTabsFromPagerAdapter(@NonNull PagerAdapter adapter) { argument 623 for (int i = 0, count = adapter.getCount(); i < count; i++) { 624 addTab(newTab().setText(adapter [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrowseFragment.java | 60 * of rows in a vertical list. The elements in this adapter must be subclasses 175 // with adapter changes. Example: a row is added before the current selected row; 177 // new selection propagated immediately; THEN the rows view processes the same adapter 299 * Sets the adapter containing the rows for the fragment. 301 * <p>The items referenced by the adapter must be be derived from 305 * @param adapter An ObjectAdapter for the browse rows. All items must 308 public void setAdapter(ObjectAdapter adapter) { argument 309 mAdapter = adapter; 311 mRowsFragment.setAdapter(adapter); 312 mHeadersFragment.setAdapter(adapter); [all...] |
H A D | BrowseSupportFragment.java | 62 * of rows in a vertical list. The elements in this adapter must be subclasses 177 // with adapter changes. Example: a row is added before the current selected row; 179 // new selection propagated immediately; THEN the rows view processes the same adapter 301 * Sets the adapter containing the rows for the fragment. 303 * <p>The items referenced by the adapter must be be derived from 307 * @param adapter An ObjectAdapter for the browse rows. All items must 310 public void setAdapter(ObjectAdapter adapter) { argument 311 mAdapter = adapter; 313 mRowsSupportFragment.setAdapter(adapter); 314 mHeadersSupportFragment.setAdapter(adapter); [all...] |
H A D | DetailsFragment.java | 43 * of rows in a vertical list. The elements in this adapter must be subclasses 48 * When {@link FullWidthDetailsOverviewRowPresenter} is found in adapter, DetailsFragment will 118 public void setAdapter(ObjectAdapter adapter) { argument 119 mAdapter = adapter; 120 Presenter[] presenters = adapter.getPresenterSelector().getPresenters(); 129 mRowsFragment.setAdapter(adapter); 315 ObjectAdapter adapter = getAdapter(); 316 if (adapter == null || adapter.size() == 0 || 322 if (adapter ! [all...] |
H A D | DetailsSupportFragment.java | 45 * of rows in a vertical list. The elements in this adapter must be subclasses 50 * When {@link FullWidthDetailsOverviewRowPresenter} is found in adapter, DetailsSupportFragment will 120 public void setAdapter(ObjectAdapter adapter) { argument 121 mAdapter = adapter; 122 Presenter[] presenters = adapter.getPresenterSelector().getPresenters(); 131 mRowsSupportFragment.setAdapter(adapter); 317 ObjectAdapter adapter = getAdapter(); 318 if (adapter == null || adapter.size() == 0 || 324 if (adapter ! [all...] |
H A D | PlaybackControlGlue.java | 51 * on the controls row as the primary actions adapter, and adds actions to it. You can provide 77 * The adapter key for the first custom control on the right side 83 * The adapter key for the skip to previous control. 88 * The adapter key for the rewind control. 93 * The adapter key for the play/pause control. 98 * The adapter key for the fast forward control. 103 * The adapter key for the skip to next control. 108 * The adapter key for the first custom control on the right side 701 private static void notifyItemChanged(SparseArrayObjectAdapter adapter, Object object) { argument 702 int index = adapter [all...] |
H A D | PlaybackOverlayFragment.java | 55 * of rows in a vertical list. The elements in this adapter must be subclasses 60 * at position 0 in the adapter. 573 public void setAdapter(ObjectAdapter adapter) { argument 577 super.setAdapter(adapter); 578 if (adapter != null) { 579 adapter.registerObserver(mObserver);
|
H A D | PlaybackOverlaySupportFragment.java | 57 * of rows in a vertical list. The elements in this adapter must be subclasses 62 * at position 0 in the adapter. 575 public void setAdapter(ObjectAdapter adapter) { argument 579 super.setAdapter(adapter); 580 if (adapter != null) { 581 adapter.registerObserver(mObserver);
|
H A D | VerticalGridFragment.java | 74 * Sets the object adapter for the fragment. 76 public void setAdapter(ObjectAdapter adapter) { argument 77 mAdapter = adapter; 82 * Returns the object adapter.
|
H A D | VerticalGridSupportFragment.java | 76 * Sets the object adapter for the fragment. 78 public void setAdapter(ObjectAdapter adapter) { argument 79 mAdapter = adapter; 84 * Returns the object adapter.
|