Searched defs:item (Results 26 - 50 of 479) sorted by relevance

1234567891011>>

/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
H A DItemViewHolder.java51 public void setItem(IItem item) { argument
52 mItem = item;
/frameworks/support/car/src/main/java/androidx/car/widget/
H A DGridLayoutManagerUtils.java48 // pos will be either the first item in second row, or item count when items not fill
54 * Returns the span index of an item.
56 public static int getSpanIndex(View item) { argument
58 ((GridLayoutManager.LayoutParams) item.getLayoutParams());
63 * Returns the span size of an item. {@code item} must be already laid out.
65 public static int getSpanSize(View item) { argument
67 ((GridLayoutManager.LayoutParams) item.getLayoutParams());
72 * Returns the index of the last item tha
[all...]
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaBrowserSupport.java45 public void onMediaItemSelected(MediaBrowserCompat.MediaItem item) { argument
46 if (item.isPlayable()) {
49 mediaController.getTransportControls().playFromMediaId(item.getMediaId(), null);
56 } else if (item.isBrowsable()) {
58 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId()))
/frameworks/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/
H A DActionBarMechanics.java41 // by adding the element <item name="android:windowActionBar">true</item>
52 menu.add("Normal item");
69 public boolean onOptionsItemSelected(MenuItem item) { argument
70 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show();
H A DActionBarPreferences.java45 public boolean onOptionsItemSelected(MenuItem item) { argument
46 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show();
H A DActionBarSettingsActionProviderActivity.java37 * ActionProvider for launching the system settings and adds a menu item with that
49 public boolean onOptionsItemSelected(MenuItem item) { argument
50 // If this callback does not handle the item click, onPerformDefaultAction
52 // complete functionality of the menu item.
89 // This is called if the host menu item placed in the overflow menu of the
H A DMenuItemIconTinting.java53 public boolean onOptionsItemSelected(MenuItem item) { argument
54 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show();
H A DToolbarUsage.java62 public boolean onOptionsItemSelected(MenuItem item) { argument
63 Toast.makeText(this, "Selected Item: " + item.getTitle(), Toast.LENGTH_SHORT).show();
/frameworks/support/frameworks/support/samples/SupportAppNavigation/src/main/java/com/example/android/support/appnavigation/app/
H A DContentCategoryActivity.java39 public boolean onOptionsItemSelected(MenuItem item) { argument
40 if (item.getItemId() == android.R.id.home) {
44 return super.onOptionsItemSelected(item);
H A DContentViewActivity.java51 public boolean onOptionsItemSelected(MenuItem item) { argument
52 if (item.getItemId() == android.R.id.home) {
64 return super.onOptionsItemSelected(item);
H A DNotificationsActivity.java43 public boolean onOptionsItemSelected(MenuItem item) { argument
44 if (item.getItemId() == android.R.id.home) {
48 return super.onOptionsItemSelected(item);
H A DPeerActivity.java49 public boolean onOptionsItemSelected(MenuItem item) { argument
50 if (item.getItemId() == android.R.id.home) {
54 return super.onOptionsItemSelected(item);
H A DSimpleUpActivity.java37 public boolean onOptionsItemSelected(MenuItem item) { argument
38 if (item.getItemId() == android.R.id.home) {
42 return super.onOptionsItemSelected(item);
H A DViewFromOtherTaskActivity.java39 public boolean onOptionsItemSelected(MenuItem item) { argument
40 if (item.getItemId() == android.R.id.home) {
/frameworks/support/frameworks/support/samples/SupportDesignDemos/src/main/java/com/example/android/support/design/widget/
H A DNavigationViewUsageBase.java52 protected boolean handleNavigationItemSelected(MenuItem item) { argument
53 switch (item.getItemId()) {
/frameworks/support/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
H A DStringPresenter.java40 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
41 Log.d(TAG, "onBindViewHolder for " + item.toString());
42 ((TextView) viewHolder.view).setText(item.toString());
/frameworks/support/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/presenter/
H A DGridItemPresenter.java51 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
52 ((TextView) viewHolder.view).setText((String) item);
H A DHeaderItemPresenter.java52 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
53 HeaderItem headerItem = ((ListRow) item).getHeaderItem();
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
H A DStringPresenter.java40 public void onBindViewHolder(ViewHolder viewHolder, Object item) { argument
41 if (DEBUG) Log.d(TAG, "onBindViewHolder for " + item.toString());
42 ((TextView) viewHolder.view).setText(item.toString());
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DClassPresenterSelector.java20 * A ClassPresenterSelector selects a {@link Presenter} based on the item's
62 public Presenter getPresenter(Object item) { argument
63 Class<?> cls = item.getClass();
69 Presenter innerPresenter = ((PresenterSelector) presenter).getPresenter(item);
H A DDividerPresenter.java53 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
H A DMediaItemActionPresenter.java58 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { argument
60 MultiActionsProvider.MultiAction action = (MultiActionsProvider.MultiAction) item;
/frameworks/support/navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/
H A DNavigationActivity.java101 public boolean onOptionsItemSelected(MenuItem item) { argument
103 item, Navigation.findNavController(this, R.id.my_nav_host_fragment))
104 || super.onOptionsItemSelected(item);
/frameworks/support/recyclerview-selection/src/androidTest/java/androidx/recyclerview/selection/testing/
H A DTestFocusDelegate.java37 public void focusItem(ItemDetails<K> item) { argument
38 mFocusItemId = item.getSelectionKey();
39 mFocusPosition = item.getPosition();
H A DTestOnItemActivatedListener.java31 public boolean onItemActivated(ItemDetails<K> item, MotionEvent e) { argument
32 mActivated = item;

Completed in 155 milliseconds

1234567891011>>