/frameworks/support/v7/appcompat/res/layout/ |
abc_select_dialog_material.xml | 20 This layout file is inflated and used as the ListView to display the items. 23 <ListView xmlns:android="http://schemas.android.com/apk/res/android" 35 style="@style/Widget.AppCompat.ListView" /
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
IndexerListAdapter.java | 21 import android.widget.ListView; 42 private int position = ListView.INVALID_POSITION; 48 position = ListView.INVALID_POSITION; 150 public void configurePinnedHeaders(PinnedHeaderListView listView) { 151 super.configurePinnedHeaders(listView); 159 listView.setHeaderInvisible(index, false); 161 int listPosition = listView.getPositionAt(listView.getTotalTopPinnedHeaderHeight()); 162 int position = listPosition - listView.getHeaderViewsCount(); 174 listView.setHeaderInvisible(index, false) [all...] |
/prebuilts/sdk/current/support/v7/appcompat/res/layout/ |
abc_select_dialog_material.xml | 20 This layout file is inflated and used as the ListView to display the items. 23 <ListView xmlns:android="http://schemas.android.com/apk/res/android" 35 style="@style/Widget.AppCompat.ListView" /
|
/packages/apps/Calendar/src/com/android/calendar/ |
StickyHeaderListView.java | 29 import android.widget.ListView; 32 * Implements a ListView class with a sticky header at the top. The header is 37 * 1. The class uses the first available child ListView as the working 38 * ListView. If no ListView child exists, the class will create a default one. 39 * 2. The ListView's adapter must be passed to this class using the 'setAdapter' 41 * is specified, the class will try to extract it from the ListView 43 * ListView needs to receive scroll events, it must register its listener using 47 * since a change the dataset in a listview forces a call to OnScroll. The needed code is 62 protected ListView mListView = null [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List15.java | 27 import android.widget.ListView; 31 * This demo illustrates the use of CHOICE_MODE_MULTIPLE_MODAL, a.k.a. selection mode on ListView. 37 ListView lv = getListView(); 38 lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); 50 private class ModeCallback implements ListView.MultiChoiceModeListener {
|
List16.java | 27 import android.widget.ListView; 31 * This demo illustrates the use of CHOICE_MODE_MULTIPLE_MODAL, a.k.a. selection mode on ListView 39 ListView lv = getListView(); 40 lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE_MODAL); 52 private class ModeCallback implements ListView.MultiChoiceModeListener {
|
SplitTouchView.java | 27 import android.widget.ListView; 41 ListView list1 = (ListView) findViewById(R.id.list1); 42 ListView list2 = (ListView) findViewById(R.id.list2);
|
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/ |
HeadlinesFragment.java | 23 import android.widget.ListView; 50 // When in two-pane layout, set the listview to highlight the selected list item 51 // (We do this during onStart because at the point the listview is available.) 53 getListView().setChoiceMode(ListView.CHOICE_MODE_SINGLE); 72 public void onListItemClick(ListView l, View v, int position, long id) {
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListViewHeightTest.java | 17 package android.widget.listview; 23 import android.widget.ListView; 26 import android.widget.listview.ListViewHeight; 56 ListView list = (ListView) mActivity.findViewById(R.id.inner_list);
|
ListWithDisappearingItemBug.java | 17 package android.widget.listview; 31 import android.widget.ListView; 76 ListView listView = getListView(); 77 listView.setLayoutAnimation(controller);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
AdjacentListsWithAdjacentISVsInsideTest.java | 17 package android.widget.listview.focus; 20 import android.widget.listview.AdjacentListsWithAdjacentISVsInside; 26 import android.widget.ListView; 30 private ListView mLeftListView; 33 private ListView mRightListView;
|
ListWithEditTextHeaderTest.java | 17 package android.widget.listview.focus; 28 import android.widget.ListView; 29 import android.widget.listview.ListWithEditTextHeader; 32 private ListView mListView; 46 assertTrue("listview.getItemsCanFocus()", mListView.getItemsCanFocus());
|
/frameworks/base/tests/RenderThreadTest/src/com/example/renderthread/ |
MainActivity.java | 13 import android.widget.ListView; 46 ListView lv = (ListView) findViewById(android.R.id.list); 58 ListView lv = (ListView) findViewById(android.R.id.list);
|
/frameworks/base/tools/layoutlib/bridge/src/android/preference/ |
Preference_Delegate.java | 30 import android.widget.ListView; 55 * Inflates the parser and returns the ListView containing the Preferences. 62 ListView preferenceView = createContainerView(context, root); 67 private static ListView createContainerView(Context context, ViewGroup root) { 78 return (ListView) root.findViewById(android.R.id.list);
|
/developers/samples/android/ui/lists/CustomChoiceList/ |
template-params.xml | 28 This sample demonstrates how to create custom checkable layouts, for use with ListView\'s choiceMode 52 <android>android.widget.ListView</android> 57 This sample demonstrates how to create custom checkable layouts, for use with ListView's choiceMode 67 This sample demonstrates how to create custom single- or multi-choice [ListView][1] UIs on Android. 69 When a ListView has a `android:choiceMode` attribute set, it will allow users to "choose" one or more items. For 73 <ListView android:id="@android:id/list" 95 [1]: http://developer.android.com/reference/android/widget/ListView.html
|
/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; 24 import android.widget.ListView; 25 import android.widget.listview.ListWithScreenOfNoSelectables; 29 private ListView mListView; 65 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); 90 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition()); 96 assertEquals("selected position", ListView.INVALID_POSITION, mListView.getSelectedItemPosition());
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
PermissionsFrameFragment.java | 27 import android.widget.ListView; 84 public ListView getListView() { 85 ListView listView = super.getListView(); 86 if (listView.getEmptyView() == null) { 88 listView.setEmptyView(emptyView); 90 return listView;
|
/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...] |
/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...] |
/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...] |
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/ |
UiBenchJankTests.java | 29 import android.widget.ListView; 60 By.clazz(ListView.class)), mHelper.TIMEOUT); 123 // Open Trivial listview from General 126 "General/Trivial ListView"); 129 Assert.assertNotNull("Trivial ListView isn't found in General", mHelper.mContents); 142 "General/Trivial Recycler ListView"); 145 Assert.assertNotNull("Trivial Recycler ListView isn't found in General", 156 // Open Inflation Listview contents 159 "Inflation/Inflating ListView"); 162 Assert.assertNotNull("Inflating ListView isn't found in Inflation" [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...] |