/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListViewModalSelect/Application/src/main/java/com/example/android/actionbarcompat/listviewmodalselect/ |
CheeseListFragment.java | 27 import android.widget.ListView; 55 // Set the ListAdapter so that the ListView displays the items 60 // Attach a MultiSelectionUtil.Controller to the ListView, giving it an instance of 117 // the ListView contents and finish the action mode. 120 final ListView listView = getListView(); 121 SparseBooleanArray checkedPositions = listView.getCheckedItemPositions(); 141 // Clear the ListView's checked items 142 listView.clearChoices(); 144 // Finally, notify the adapter so that it updates the ListView [all...] |
/developers/samples/android/wearable/wear/Notifications/Wearable/src/main/java/com/example/android/support/wearable/notifications/ |
MainActivity.java | 41 WearableListView listView = (WearableListView) findViewById(R.id.list); 42 listView.setAdapter(new Adapter(this)); 43 listView.setClickListener(this);
|
/development/samples/browseable/Notifications/Wearable/src/com.example.android.support.wearable.notifications/ |
MainActivity.java | 41 WearableListView listView = (WearableListView) findViewById(R.id.list); 42 listView.setAdapter(new Adapter(this)); 43 listView.setClickListener(this);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
GroupMembershipView.java | 36 import android.widget.ListView; 195 ListView listView = mPopup.getListView(); 196 if (listView != null && !listView.isItemChecked(position)) { 198 listView.setItemChecked(position, true); 199 onItemClick(listView, null, position, listView.getItemIdAtPosition(position)); 324 ListView listView = mPopup.getListView() [all...] |
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
TestListFragment.java | 23 import android.widget.ListView; 30 private int mActivatedPosition = ListView.INVALID_POSITION; 78 public void onListItemClick(ListView listView, View view, int position, long id) { 79 super.onListItemClick(listView, view, position, id); 86 if (mActivatedPosition != ListView.INVALID_POSITION) { 93 activateOnItemClick ? ListView.CHOICE_MODE_SINGLE : ListView.CHOICE_MODE_NONE); 97 if (position == ListView.INVALID_POSITION) {
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListWithDisappearingItemBug.java | 17 package android.widget.listview; 31 import android.widget.ListView; 76 ListView listView = getListView(); 77 listView.setLayoutAnimation(controller);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
LimitedMultiSelectDialogFragment.java | 38 import android.widget.ListView; 90 final ListView listView = new ListView(getActivity()); 91 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 92 listView.setAdapter(adapter); 93 listView.setOnItemClickListener(new OnItemClickListener() { 121 listView.setItemChecked(j, true); 127 .setView(listView) [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
CallLogFragment.java | 43 import android.widget.ListView; 239 final ListView listView = getListView(); 246 if (listView.getFirstVisiblePosition() > 5) { 247 listView.setSelection(5); 257 listView.smoothScrollToPosition(0); 523 * Determine whether or not the footer view should be added to the listview. If getView() 543 final ListView listView = getListView(); 544 listView.removeFooterView(mFooterView) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
SettingsPreferenceFragment.java | 44 import android.widget.ListView; 196 * Return a valid ListView position or -1 if none is found 203 ListView listView = getListView(); 204 ListAdapter adapter = listView.getAdapter(); 220 final ListView listView = getListView(); 221 final ListAdapter adapter = listView.getAdapter(); 226 listView.post(new Runnable() { 229 listView.setSelection(position) [all...] |
/developers/samples/android/common/src/java/com/example/android/common/actionbarcompat/ |
MultiSelectionUtil.java | 30 import android.widget.ListView; 42 * Attach a Controller to the given <code>listView</code>, <code>activity</code> 45 * @param listView ListView which displays {@link android.widget.Checkable} items. 46 * @param activity Activity which contains the ListView. 50 public static Controller attachMultiSelectionController(final ListView listView, 52 return new Controller(listView, activity, listener); 57 * for the {@link ListView} provided to it. A 58 * {@link android.widget.AdapterView.OnItemLongClickListener} is set on the ListView so tha [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
WordListPreference.java | 26 import android.widget.ListView; 257 if (!(parent instanceof ListView)) return; 258 final ListView listView = (ListView)parent; 271 indexToOpen = listView.indexOfChild(v); 274 listView.getLastVisiblePosition() - listView.getFirstVisiblePosition(); 277 final ButtonSwitcher buttonSwitcher = (ButtonSwitcher)listView.getChildAt(i)
|
/frameworks/base/core/java/com/android/internal/app/ |
AlertController.java | 56 import android.widget.ListView; 71 private ListView mListView; 405 public ListView getListView() { 792 * a ListView. If it's text we should use the dark background 793 * for ListView we should use the light background. If neither 849 final ListView listView = mListView; 850 if (listView != null && mAdapter != null) { 851 listView.setAdapter(mAdapter); 854 listView.setItemChecked(checkedItem, true) [all...] |
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
WiFiChatFragment.java | 12 import android.widget.ListView; 27 private ListView listView; 36 listView = (ListView) view.findViewById(android.R.id.list); 39 listView.setAdapter(adapter);
|
/frameworks/base/core/java/android/preference/ |
PreferenceScreen.java | 33 import android.widget.ListView; 93 private ListView mListView; 136 * Binds a {@link ListView} to the preferences contained in this {@link PreferenceScreen} via 140 * @param listView The list view to attach to. 142 public void bind(ListView listView) { 143 listView.setOnItemClickListener(this); 144 listView.setAdapter(getRootAdapter()); 168 mListView = (ListView) childPrefScreen.findViewById(android.R.id.list); 207 if (parent instanceof ListView) { [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
MiscFilesHandler.java | 39 import android.widget.ListView; 68 ListView lv = getListView(); 70 lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); 75 private class ModeCallback implements ListView.MultiChoiceModeListener { 95 ListView lv = getListView(); 166 ListView lv = getListView(); 255 final ListView listView = (ListView) parent; 261 listView.setItemChecked(listPosition, isChecked) [all...] |
/developers/build/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/src/main/java/com/example/android/actionbarcompat/listpopupmenu/ |
PopupListFragment.java | 25 import android.widget.ListView; 52 public void onListItemClick(ListView listView, View v, int position, long id) { 53 String item = (String) listView.getItemAtPosition(position);
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListPopupMenu/Application/src/main/java/com/example/android/actionbarcompat/listpopupmenu/ |
PopupListFragment.java | 25 import android.widget.ListView; 52 public void onListItemClick(ListView listView, View v, int position, long id) { 53 String item = (String) listView.getItemAtPosition(position);
|
/development/samples/browseable/ActionBarCompat-ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/ |
PopupListFragment.java | 25 import android.widget.ListView; 52 public void onListItemClick(ListView listView, View v, int position, long id) { 53 String item = (String) listView.getItemAtPosition(position);
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
TitlesFragment.java | 36 import android.widget.ListView; 42 * that includes a single ListView, which you can acquire with getListView() 75 * ListFragment, which includes a ListView as the root view by default, so there's 107 ListView lv = getListView(); 112 lv.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 132 // to the ListView in order to dodge the ActionBar. Ordinarily, that's not 146 /** Attaches an adapter to the fragment's ListView to populate it with items */ 152 // Convenience method to attach an adapter to ListFragment's ListView 159 public void onListItemClick(ListView l, View v, int position, long id) { 165 /** Called to select an item from the listview */ [all...] |
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
MainActivity.java | 25 import android.widget.ListView; 78 protected void onListItemClick(ListView listView, View view, int position, long id) {
|
/packages/apps/Mms/src/com/android/mms/ui/ |
SearchActivity.java | 45 import android.widget.ListView; 272 final ListView listView = getListView(); 273 listView.setItemsCanFocus(true); 274 listView.setFocusable(true); 275 listView.setClickable(true); 353 // ListView seems to want to reject the setFocusable until such time 356 listView.setFocusable(true); 357 listView.setFocusableInTouchMode(true); 358 listView.requestFocus() [all...] |
ConversationList.java | 67 import android.widget.ListView; 143 ListView listView = getListView(); 144 listView.setOnCreateContextMenuListener(mConvListOnCreateContextMenuListener); 145 listView.setOnKeyListener(mThreadListKeyListener); 146 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); 147 listView.setMultiChoiceModeListener(new ModeCallback()); 150 listView.setEmptyView(findViewById(R.id.empty)); 194 ListView listView = getListView() [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
DigitalWatchFaceWearableConfigActivity.java | 60 WearableListView listView = (WearableListView) findViewById(R.id.color_picker); 77 listView.setHasFixedSize(true); 78 listView.setClickListener(this); 79 listView.addOnScrollListener(this); 82 listView.setAdapter(new ColorListAdapter(colors));
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
DigitalWatchFaceWearableConfigActivity.java | 60 WearableListView listView = (WearableListView) findViewById(R.id.color_picker); 77 listView.setHasFixedSize(true); 78 listView.setClickListener(this); 79 listView.addOnScrollListener(this); 82 listView.setAdapter(new ColorListAdapter(colors));
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
DigitalWatchFaceWearableConfigActivity.java | 60 WearableListView listView = (WearableListView) findViewById(R.id.color_picker); 77 listView.setHasFixedSize(true); 78 listView.setClickListener(this); 79 listView.addOnScrollListener(this); 82 listView.setAdapter(new ColorListAdapter(colors));
|