Home
last modified time | relevance | path

Searched refs:selectedItem (Results 1 – 8 of 8) sorted by relevance

/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/widget/
DBottomNavigationViewUsage.java100 final TextView selectedItem = findViewById(R.id.selected_item); in onCreate() local
107 selectedItem.setText("Entering searching mode"); in onCreate()
110 selectedItem.setText("Entering settings!?!"); in onCreate()
113 selectedItem.setText("Play some music"); in onCreate()
116 selectedItem.setText("Selected " + item.getTitle()); in onCreate()
125 selectedItem.setText("Reselected " + item.getTitle()); in onCreate()
/frameworks/base/core/java/android/widget/
DMenuPopupWindow.java127 ListMenuItemView selectedItem = (ListMenuItemView) getSelectedView(); in onKeyDown() local
128 if (selectedItem != null && keyCode == mAdvanceKey) { in onKeyDown()
129 if (selectedItem.isEnabled() && selectedItem.getItemData().hasSubMenu()) { in onKeyDown()
131 selectedItem, in onKeyDown()
136 } else if (selectedItem != null && keyCode == mRetreatKey) { in onKeyDown()
DAutoCompleteTextView.java926 protected CharSequence convertSelectionToString(Object selectedItem) { in convertSelectionToString() argument
927 return mFilter.convertResultToString(selectedItem); in convertSelectionToString()
994 Object selectedItem; in performCompletion() local
996 selectedItem = mPopup.getSelectedItem(); in performCompletion()
998 selectedItem = mAdapter.getItem(position); in performCompletion()
1000 if (selectedItem == null) { in performCompletion()
1006 replaceText(convertSelectionToString(selectedItem)); in performCompletion()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DMenuPopupWindow.java161 ListMenuItemView selectedItem = (ListMenuItemView) getSelectedView(); in onKeyDown() local
162 if (selectedItem != null && keyCode == mAdvanceKey) { in onKeyDown()
163 if (selectedItem.isEnabled() && selectedItem.getItemData().hasSubMenu()) { in onKeyDown()
165 selectedItem, in onKeyDown()
170 } else if (selectedItem != null && keyCode == mRetreatKey) { in onKeyDown()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/app/
DBaseKeyboardShortcutsTestCase.java59 MenuItem selectedItem = getActivity().getOptionsItemSelected(); in testKeyboardShortcut() local
60 assertNotNull("Options item selected", selectedItem); in testKeyboardShortcut()
61 assertEquals("Correct options item selected", selectedItem.getItemId(), expectedId); in testKeyboardShortcut()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListItemFocusablesCloseTest.java94 final LinearLayout selectedItem = (LinearLayout) mListView.getSelectedView(); in testMoveDownToButtonInDifferentSelection() local
96 selectedItem.getChildAt(0).isFocused()); in testMoveDownToButtonInDifferentSelection()
/frameworks/base/core/java/android/preference/
DPreferenceFragment.java452 Object selectedItem = mList.getSelectedItem();
453 if (selectedItem instanceof Preference) {
455 return ((Preference)selectedItem).onKey(
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DManualActivity.java170 public void onItemSelected(AdapterView<?> parentView, View selectedItem, in DisplayModifierSpinner()