/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
ListWithEditTextHeaderTest.java | 17 package android.widget.listview.focus; 27 import android.widget.ListView; 28 import android.widget.listview.ListWithEditTextHeader; 31 private ListView mListView; 45 assertTrue("listview.getItemsCanFocus()", mListView.getItemsCanFocus());
|
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/ |
MainActivity.java | 14 import android.widget.ListView; 47 ListView lv = (ListView) findViewById(android.R.id.list); 59 ListView lv = (ListView) findViewById(android.R.id.list);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
RingtonePickerActivity.java | 32 import android.widget.ListView; 191 public void onPrepareListView(ListView listView) { 194 mDefaultRingtonePos = addDefaultRingtoneItem(listView); 202 mSilentPos = addSilentItem(listView); 222 * @param listView The ListView to add to. 226 private int addStaticItem(ListView listView, int textResId) { 228 com.android.internal.R.layout.select_dialog_singlechoice_material, listView, false) [all...] |
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
DynamicListView.java | 39 import android.widget.ListView; 44 * The dynamic listview is an extension of listview that supports cell dragging 52 * If no cell is selected, all the touch events are passed down to the listview 53 * and behave normally. If one of the items in the listview experiences a 56 * added to this layout as an overlaying BitmapDrawable above the listview. Once the 59 * it animates into its corresponding position in the listview. 61 * When the hover cell is either above or below the bounds of the listview, this 62 * listview also scrolls on its own so as to reveal additional content. 64 public class DynamicListView extends ListView { [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListWithScreenOfNoSelectablesTest.java | 17 package android.widget.listview.arrowscroll; 23 import android.widget.ListView; 24 import android.widget.listview.ListWithScreenOfNoSelectables; 28 private ListView mListView; 64 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); 88 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); 94 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition());
|
/developers/build/prebuilts/gradle/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
AdapterTransitionFragment.java | 35 import android.widget.ListView; 50 * A tag for saving state whether the mAbsListView is ListView or GridView. 55 * This is where we place our AdapterView (ListView / GridView). 65 * This list shows our contents. It can be ListView or GridView, and we toggle between them 91 // If savedInstanceState is available, we restore the state whether the list is a ListView 106 outState.putBoolean(STATE_IS_LISTVIEW, mAbsListView instanceof ListView); 128 if (mAbsListView instanceof ListView) { 175 * Inflate a ListView or a GridView with a corresponding ListAdapter. 180 * @param inflateListView Pass true to inflate a ListView, or false to inflate a GridView. 198 * Toggle the UI between ListView and GridView [all...] |
/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
AdapterTransitionFragment.java | 35 import android.widget.ListView; 50 * A tag for saving state whether the mAbsListView is ListView or GridView. 55 * This is where we place our AdapterView (ListView / GridView). 65 * This list shows our contents. It can be ListView or GridView, and we toggle between them 91 // If savedInstanceState is available, we restore the state whether the list is a ListView 106 outState.putBoolean(STATE_IS_LISTVIEW, mAbsListView instanceof ListView); 128 if (mAbsListView instanceof ListView) { 175 * Inflate a ListView or a GridView with a corresponding ListAdapter. 180 * @param inflateListView Pass true to inflate a ListView, or false to inflate a GridView. 198 * Toggle the UI between ListView and GridView [all...] |
/development/samples/browseable/AdapterTransition/src/com.example.android.adaptertransition/ |
AdapterTransitionFragment.java | 35 import android.widget.ListView; 50 * A tag for saving state whether the mAbsListView is ListView or GridView. 55 * This is where we place our AdapterView (ListView / GridView). 65 * This list shows our contents. It can be ListView or GridView, and we toggle between them 91 // If savedInstanceState is available, we restore the state whether the list is a ListView 106 outState.putBoolean(STATE_IS_LISTVIEW, mAbsListView instanceof ListView); 128 if (mAbsListView instanceof ListView) { 175 * Inflate a ListView or a GridView with a corresponding ListAdapter. 180 * @param inflateListView Pass true to inflate a ListView, or false to inflate a GridView. 198 * Toggle the UI between ListView and GridView [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...] |
/frameworks/base/core/java/android/app/ |
ListActivity.java | 24 import android.widget.ListView; 30 * ListActivity hosts a {@link android.widget.ListView ListView} object that can 41 * onCreate(). To do this, your own view MUST contain a ListView object with the 62 * <ListView android:id="@android:id/list" 83 * (the ListAdapter binds the ListView to the data; more on this later). 126 * You bind the ListActivity's ListView object to data using a class that 136 * to a two line row layout in the activity's ListView. 173 * @see android.widget.ListView 185 protected ListView mList [all...] |
ListFragment.java | 27 import android.widget.ListView; 34 * ListFragment hosts a {@link android.widget.ListView ListView} object that can 45 * To do this, your view hierarchy <em>must</em> contain a ListView object with the 66 * <ListView android:id="@id/android:list" 87 * (the ListAdapter binds the ListView to the data; more on this later). 130 * You bind the ListFragment's ListView object to data using a class that 141 * {@link ListView#setAdapter(ListAdapter) ListView.setAdapter()} or else 146 * @see android.widget.ListView [all...] |
/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...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSettingsEditQuickResponsesFragment.java | 40 import android.widget.ListView; 83 final ListView listView = UiUtilities.getView(getView(), 85 listView.setAdapter(adapter); 122 final ListView listView = UiUtilities.getView(view, 125 UiUtilities.getView((ViewGroup) listView.getParent(), R.id.empty_view); 126 listView.setEmptyView(emptyView); 127 listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { 130 final Cursor c = (Cursor) listView.getItemAtPosition(position) [all...] |
/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...] |
/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/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
ListViewItemAnimations.java | 37 import android.widget.ListView; 40 * This example shows how to use a swipe effect to remove items from a ListView, 53 ListView mListView; 71 mListView = (ListView) findViewById(R.id.listview); 179 * Animates a swipe of the item either back into place or out of the listview container. 259 * This method animates all other views in the ListView container (not including ignoreView) 265 private void animateOtherViews(final ListView listview, View viewToRemove) { 266 int firstVisiblePosition = listview.getFirstVisiblePosition() [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...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
DetailsFragment.java | 144 void setVerticalGridViewLayout(VerticalGridView listview) { 146 listview.setItemAlignmentOffset(0); 147 listview.setItemAlignmentOffsetPercent(VerticalGridView.ITEM_ALIGN_OFFSET_PERCENT_DISABLED); 148 listview.setWindowAlignmentOffset(mContainerListAlignTop); 149 listview.setWindowAlignmentOffsetPercent(VerticalGridView.WINDOW_ALIGN_OFFSET_PERCENT_DISABLED); 150 listview.setWindowAlignment(VerticalGridView.WINDOW_ALIGN_NO_EDGE);
|
/developers/build/prebuilts/gradle/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/swiperefreshlayoutbasic/ |
SwipeRefreshLayoutBasicFragment.java | 33 import android.widget.ListView; 40 * scrollable {@link android.widget.ListView} as its only child. 45 * <p>In this sample app, the refresh updates the ListView with a random set of new items. 60 * The {@link android.widget.ListView} that displays the content that should be refreshed. 62 private ListView mListView; 65 * The {@link android.widget.ListAdapter} used to populate the {@link android.widget.ListView} 84 // Retrieve the SwipeRefreshLayout and ListView instances 94 // Retrieve the ListView 95 mListView = (ListView) view.findViewById(android.R.id.list); 107 * Create an ArrayAdapter to contain the data for the ListView. Each item in the ListVie [all...] |
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshLayoutBasic/Application/src/main/java/com/example/android/swiperefreshlayoutbasic/ |
SwipeRefreshLayoutBasicFragment.java | 33 import android.widget.ListView; 40 * scrollable {@link android.widget.ListView} as its only child. 45 * <p>In this sample app, the refresh updates the ListView with a random set of new items. 60 * The {@link android.widget.ListView} that displays the content that should be refreshed. 62 private ListView mListView; 65 * The {@link android.widget.ListAdapter} used to populate the {@link android.widget.ListView} 84 // Retrieve the SwipeRefreshLayout and ListView instances 94 // Retrieve the ListView 95 mListView = (ListView) view.findViewById(android.R.id.list); 107 * Create an ArrayAdapter to contain the data for the ListView. Each item in the ListVie [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List17.java | 23 import android.widget.ListView; 43 getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); 51 protected void onListItemClick(ListView l, View v, int position, long id) {
|
SearchViewFilterMode.java | 26 import android.widget.ListView; 38 private ListView mListView; 51 mListView = (ListView) findViewById(R.id.list_view);
|
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.swiperefreshlayoutbasic/ |
SwipeRefreshLayoutBasicFragment.java | 33 import android.widget.ListView; 40 * scrollable {@link android.widget.ListView} as its only child. 45 * <p>In this sample app, the refresh updates the ListView with a random set of new items. 60 * The {@link android.widget.ListView} that displays the content that should be refreshed. 62 private ListView mListView; 65 * The {@link android.widget.ListAdapter} used to populate the {@link android.widget.ListView} 84 // Retrieve the SwipeRefreshLayout and ListView instances 94 // Retrieve the ListView 95 mListView = (ListView) view.findViewById(android.R.id.list); 107 * Create an ArrayAdapter to contain the data for the ListView. Each item in the ListVie [all...] |
/external/chromium-trace/trace-viewer/src/ui/ |
list_and_associated_view_test.js | 42 var lavListView = lav.listView; 71 var lavListView = lav.listView; 89 var lavListView = lav.listView;
|
/developers/samples/android/wearable/wear/SpeedTracker/Wearable/src/main/java/com/example/android/wearable/speedtracker/ |
SpeedPickerActivity.java | 45 WearableListView listView = (WearableListView) findViewById(R.id.wearable_list); 48 listView.setAdapter(new SpeedPickerListAdapter(this, speeds)); 51 listView.setClickListener(this); 53 listView.addOnScrollListener(new WearableListView.OnScrollListener() {
|