/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListUnspecifiedMeasure.java | 17 package android.widget.listview; 24 import android.widget.ListView; 28 private ListView mListView; 39 mListView = (ListView) mActivity.findViewById(R.id.list);
|
ListGetCheckItemIdsTest.java | 17 package android.widget.listview; 22 import android.widget.ListView; 27 * Testing the ListView getCheckItemIds() method in different situations. 30 private ListView mListView; 60 mListView.setChoiceMode(ListView.CHOICE_MODE_NONE); 69 mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 91 mListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE); 128 mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE); 133 mListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListItemFocusableAboveUnfocusableTest.java | 17 package android.widget.listview.arrowscroll; 21 import android.widget.ListView; 23 import android.widget.listview.ListItemFocusableAboveUnfocusable; 26 private ListView mListView;
|
ListWithFirstScreenUnSelectableTest.java | 17 package android.widget.listview.arrowscroll; 19 import android.widget.listview.ListWithFirstScreenUnSelectable; 22 import android.widget.ListView; 27 private ListView mListView;
|
ListWithOnItemSelectedActionTest.java | 17 package android.widget.listview.arrowscroll; 21 import android.widget.ListView; 24 import android.widget.listview.ListWithOnItemSelectedAction; 27 private ListView mListView;
|
ListWithNoFadingEdgeTest.java | 17 package android.widget.listview.arrowscroll; 19 import android.widget.listview.ListWithNoFadingEdge; 24 import android.widget.ListView; 29 private ListView mListView; 45 assertEquals("listview vertical fading edge", 0, mListView.getVerticalFadingEdgeLength());
|
/external/libgdx/tests/gdx-tests-android/src/com/badlogic/gdx/tests/android/ |
AndroidTestStarter.java | 29 import android.widget.ListView;
49 protected void onListItemClick (ListView listView, View view, int position, long id) {
50 super.onListItemClick(listView, view, position, id);
53 editor.putInt("index", listView.getFirstVisiblePosition());
54 editor.putInt("top", listView.getChildAt(0) == null ? 0 : listView.getChildAt(0).getTop());
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowListView.java | 9 import android.widget.ListView; 16 @Implements(ListView.class) 18 @RealObject private ListView realListView; 62 if (choiceMode != ListView.CHOICE_MODE_NONE) { 65 if (choiceMode == ListView.CHOICE_MODE_MULTIPLE) { 186 if (choiceMode == ListView.CHOICE_MODE_SINGLE) { 189 } else if (choiceMode == ListView.CHOICE_MODE_MULTIPLE) { 196 if (choiceMode != ListView.CHOICE_MODE_SINGLE || checkedItemPositions.size() != 1) 197 return ListView.INVALID_POSITION; 204 if (choiceMode == ListView.CHOICE_MODE_NONE [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/list/ |
ListPresentation.java | 24 import android.widget.ListView; 56 ListView listView = (ListView) view.findViewById(R.id.pla_list); 58 listView.setAdapter(new ArrayAdapter<String>(getContext(),
|
/external/chromium-trace/catapult/tracing/tracing/ui/base/ |
list_view_test.html | 12 var ListView = tr.ui.b.ListView; 15 var view = new ListView(); 23 var view = new ListView(); 36 var view = new ListView();
|
/frameworks/support/core-ui/java/android/support/v4/widget/ |
ListViewAutoScrollHelper.java | 20 import android.widget.ListView; 24 * through a {@link ListView}. 27 private final ListView mTarget; 29 public ListViewAutoScrollHelper(ListView target) { 48 final ListView target = mTarget;
|
/developers/build/prebuilts/gradle/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 27 import android.widget.ListView; 118 * <p>To enable 'swipe-to-refresh' support via the {@link android.widget.ListView} we need to 132 * @return true if the {@link android.widget.ListView} is visible and can scroll up. 136 final ListView listView = getListView(); 137 if (listView.getVisibility() == View.VISIBLE) { 138 return canListViewScrollUp(listView); 148 * Utility method to check whether a {@link ListView} can scroll up from it's current position. 152 private static boolean canListViewScrollUp(ListView listView) { [all...] |
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshListFragment/Application/src/main/java/com/example/android/swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 27 import android.widget.ListView; 118 * <p>To enable 'swipe-to-refresh' support via the {@link android.widget.ListView} we need to 132 * @return true if the {@link android.widget.ListView} is visible and can scroll up. 136 final ListView listView = getListView(); 137 if (listView.getVisibility() == View.VISIBLE) { 138 return canListViewScrollUp(listView); 148 * Utility method to check whether a {@link ListView} can scroll up from it's current position. 152 private static boolean canListViewScrollUp(ListView listView) { [all...] |
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.swiperefreshlistfragment/ |
SwipeRefreshListFragment.java | 27 import android.widget.ListView; 118 * <p>To enable 'swipe-to-refresh' support via the {@link android.widget.ListView} we need to 132 * @return true if the {@link android.widget.ListView} is visible and can scroll up. 136 final ListView listView = getListView(); 137 if (listView.getVisibility() == View.VISIBLE) { 138 return canListViewScrollUp(listView); 148 * Utility method to check whether a {@link ListView} can scroll up from it's current position. 152 private static boolean canListViewScrollUp(ListView listView) { [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
MediaRouteDialogHelper.java | 30 import android.widget.ListView; 102 * items are located in the given ListView. 104 * @param listView A list view 108 public static <E> HashMap<E, Rect> getItemBoundMap(ListView listView, 111 int firstVisiblePosition = listView.getFirstVisiblePosition(); 112 for (int i = 0; i < listView.getChildCount(); ++i) { 115 View view = listView.getChildAt(i); 124 * of member items in the given ListView. 127 * @param listView A list vie [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
HeadersFragment.java | 157 final VerticalGridView listView = getVerticalGridView(); 158 if (listView == null) { 162 FocusHighlightHelper.setupHeaderItemFocusHighlight(listView); 165 listView.setBackgroundColor(mBackgroundColor); 168 Drawable d = listView.getBackground(); 177 final VerticalGridView listView = getVerticalGridView(); 178 if (listView != null) { 182 listView.setChildrenVisibility(View.VISIBLE); 184 listView.setChildrenVisibility(View.INVISIBLE); 270 final VerticalGridView listView = getVerticalGridView() [all...] |
HeadersSupportFragment.java | 159 final VerticalGridView listView = getVerticalGridView(); 160 if (listView == null) { 164 FocusHighlightHelper.setupHeaderItemFocusHighlight(listView); 167 listView.setBackgroundColor(mBackgroundColor); 170 Drawable d = listView.getBackground(); 179 final VerticalGridView listView = getVerticalGridView(); 180 if (listView != null) { 184 listView.setChildrenVisibility(View.VISIBLE); 186 listView.setChildrenVisibility(View.INVISIBLE); 272 final VerticalGridView listView = getVerticalGridView() [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
ListFlipper.java | 28 import android.widget.ListView; 64 ListView mEnglishList; 65 ListView mFrenchList; 73 mEnglishList = (ListView) findViewById(R.id.list_en); 74 mFrenchList = (ListView) findViewById(R.id.list_fr); 76 // Prepare the ListView 79 // Prepare the ListView 98 final ListView visibleList; 99 final ListView invisibleList;
|
/development/samples/devbytes/animation/ListViewAnimations/src/com/example/android/listviewanimations/ |
ListViewAnimations.java | 33 import android.widget.ListView; 36 * This example shows how animating ListView items can lead to problems as views are recycled, 51 final ListView listview = (ListView) findViewById(R.id.listview); local 58 listview.setAdapter(adapter); 60 listview.setOnItemClickListener(new AdapterView.OnItemClickListener() { 84 // transientState, then ListView ill avoid recycling it until the
|
/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/tests/coretests/src/android/widget/listview/focus/ |
ListButtonsDiagonalAcrossItemsTest.java | 17 package android.widget.listview.focus; 19 import android.widget.listview.ListButtonsDiagonalAcrossItems; 27 import android.widget.ListView; 30 * Test that ListView will override default behavior of focus searching to 38 private ListView mListView; 57 final ListView lv = mListView;
|
/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/apps/Messaging/tests/src/com/android/messaging/ui/contact/ |
ContactPickerFragmentTest.java | 24 import android.widget.ListView; 159 final ListView listView = (ListView) getFragment().getView() 161 assertEquals(cursor.getCount(), listView.getCount()); 171 final ListView listView = (ListView) getFragment().getView() 173 assertEquals(cursor.getCount(), listView.getCount()); 180 final ListView listView = (ListView) getFragment().getView( [all...] |
/cts/tests/app/app/src/android/app/stubs/ |
MockListActivity.java | 21 import android.widget.ListView; 29 protected void onListItemClick(ListView l, View v, int position, long id) {
|
/cts/tests/tests/uiautomation/res/layout/ |
ui_automation_test.xml | 19 <ListView xmlns:android="http://schemas.android.com/apk/res/android" 23 </ListView>
|