/frameworks/base/core/tests/coretests/src/android/util/ |
ListUtil.java | 21 import android.widget.ListView; 25 * Various useful stuff for instrumentation testing listview. 30 private final ListView mListView; 34 * @param listView The listview to act on 37 public ListUtil(ListView listView, Instrumentation instrumentation) { 38 mListView = listView;
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
TransitionsAdapter.java | 38 * @param listView The list view 40 public TransitionsAdapter(Context context, AbsListView listView) { 41 super(context, listView);
|
OverlaysAdapter.java | 47 * @param listView The list view 49 public OverlaysAdapter(Context context, AbsListView listView) { 50 super(context, listView);
|
/packages/apps/Email/src/com/android/email/activity/ |
InsertQuickResponseDialog.java | 37 import android.widget.ListView; 104 final ListView listView = new ListView(context); 105 listView.setAdapter(adapter); 107 listView.setOnItemClickListener(new OnItemClickListener() { 110 final Cursor c = (Cursor) listView.getItemAtPosition(position); 141 .setView(listView)
|
/developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListViewModalSelect/ActionBarCompat-ListViewModalSelectSample/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...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
GroupMembershipView.java | 35 import android.widget.ListView; 190 ListView listView = mPopup.getListView(); 191 if (listView != null && !listView.isItemChecked(position)) { 193 listView.setItemChecked(position, true); 194 onItemClick(listView, null, position, listView.getItemIdAtPosition(position)); 319 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...] |
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/appmenu/ |
AppMenu.java | 37 import android.widget.ListView; 38 import android.widget.ListView.FixedViewInfo; 108 // Sub-UI-controls, backward, forward, bookmark and listView, are getting a touch event first 150 // If user is dragging and the popup ListView is too big to display at once, 218 mHandler.onMenuVisibilityChanged(false, ListView.INVALID_POSITION); 294 // We assume that the parent of popup ListView is an instance of View. Otherwise, dragging 345 ListView listView = mPopup.getListView(); 347 int previousPosition = listView.getSelectedItemPosition(); 349 if (listView.getSelectedItemPosition() == ListView.INVALID_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; 252 if (!(parent instanceof ListView)) return; 253 final ListView listView = (ListView)parent; 266 indexToOpen = listView.indexOfChild(v); 269 listView.getLastVisiblePosition() - listView.getFirstVisiblePosition(); 272 final ButtonSwitcher buttonSwitcher = (ButtonSwitcher)listView.getChildAt(i)
|
/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 | 34 import android.widget.ListView; 94 private ListView mListView; 137 * Binds a {@link ListView} to the preferences contained in this {@link PreferenceScreen} via 141 * @param listView The list view to attach to. 143 public void bind(ListView listView) { 144 listView.setOnItemClickListener(this); 145 listView.setAdapter(getRootAdapter()); 169 mListView = (ListView) childPrefScreen.findViewById(android.R.id.list); 208 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/ActionBarCompat-ListPopupMenuSample/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/ActionBarCompat-ListPopupMenuSample/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/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);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
ContactDetailDisplayUtils.java | 40 import android.widget.ListView; 520 * Returns the top coordinate of the first item in the {@link ListView}. If the first item 521 * in the {@link ListView} is not visible or there are no children in the list, then return 525 public static int getFirstListItemOffset(ListView listView) { 526 if (listView == null || listView.getChildCount() == 0 || 527 listView.getFirstVisiblePosition() != 0) { 530 return listView.getChildAt(0).getTop(); 536 * @param listView that should be scrolle [all...] |
/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...] |
/frameworks/base/core/java/com/android/internal/app/ |
AlertController.java | 52 import android.widget.ListView; 69 private ListView mListView; 366 public ListView getListView() { 645 * a ListView. If it's text we should use the dark background 646 * for ListView we should use the light background. If neither 700 /* Yet another *special* case. If there is a ListView with buttons 702 * footer of the ListView this will allow more items to be 728 public static class RecycleListView extends ListView { 792 * Interface definition for a callback to be invoked before the ListView 798 * Called before the ListView is bound to an adapter [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/ |
P2pTestListActivity.java | 29 import android.widget.ListView; 124 * Launch the activity when its {@link ListView} item is clicked. 128 protected void onListItemClick(ListView listView, View view, int position, long id) { 133 super.onListItemClick(listView, view, position, id);
|