/frameworks/support/compat/kitkat/android/support/v4/widget/ |
ListViewCompatKitKat.java | 20 import android.widget.ListView; 23 static void scrollListBy(final ListView listView, int y) { 24 listView.scrollListBy(y);
|
/frameworks/support/compat/gingerbread/android/support/v4/widget/ |
ListViewCompatGingerbread.java | 21 import android.widget.ListView; 24 static void scrollListBy(final ListView listView, int y) { 25 final int firstPosition = listView.getFirstVisiblePosition(); 26 if (firstPosition == ListView.INVALID_POSITION) { 30 final View firstView = listView.getChildAt(0); 36 listView.setSelectionFromTop(firstPosition, newTop);
|
/frameworks/support/compat/java/android/support/v4/widget/ |
ListViewCompat.java | 21 import android.widget.ListView; 24 * Helper for accessing features in {@link ListView} introduced after API level 32 * @param listView the list to scroll 35 public static void scrollListBy(@NonNull ListView listView, int y) { 37 ListViewCompatKitKat.scrollListBy(listView, y); 39 ListViewCompatGingerbread.scrollListBy(listView, y);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListWithHeaders.java | 17 package android.widget.listview; 24 import android.widget.ListView; 39 final ListView listView = getListView(); 40 listView.setItemsCanFocus(true); 45 listView.addHeaderView(header); 51 listView.addFooterView(footer); 54 final ListAdapter adapter = listView.getAdapter(); 55 listView.setAdapter(adapter);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
ContactListViewUtils.java | 8 import android.widget.ListView; 18 private static void addPaddingToView(ListView listView, int parentWidth, 24 listView.setPadding( 26 listView.getPaddingTop(), 28 listView.getPaddingBottom()); 29 // The EdgeEffect and ScrollBar need to span to the edge of the ListView's padding. 30 listView.setClipToPadding(false); 31 listView.setScrollBarStyle(View.SCROLLBARS_OUTSIDE_OVERLAY); 36 * Add padding to {@param listView} if this configuration has set both space weight an [all...] |
ViewUtil.java | 24 import android.widget.ListView; 114 * Adds padding to the bottom of the given {@link ListView} so that the floating action button 117 * @param listView to add the padding to 120 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { 123 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), 124 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
ListViewTest.java | 31 import android.widget.ListView; 40 private ListView listView; 48 listView = new ListView(null); 53 listView.setAdapter(new CountingAdapter(1)); 56 listView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { 67 listView.setSelection(0); 74 listView.setAdapter(new CountingAdapter(1)); 76 listView.addHeaderView(new View(null)) [all...] |
/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...] |
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List10.java | 22 import android.widget.ListView; 38 final ListView listView = getListView(); 40 listView.setItemsCanFocus(false); 41 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
|
List11.java | 22 import android.widget.ListView; 38 final ListView listView = getListView(); 40 listView.setItemsCanFocus(false); 41 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
DialogListActivity.java | 22 import android.widget.ListView; 29 ListView listView = new ListView(this); 30 listView.setAdapter(new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, 35 builder.setView(listView);
|
/development/samples/devbytes/animation/ListViewDraggingAnimation/src/com/example/android/listviewdragginganimation/ |
ListViewDraggingAnimation.java | 21 import android.widget.ListView; 26 * This application creates a listview where the ordering of the data set 29 * An item in the listview is selected via a long press event and is then 31 * When the item is released, it animates to its new position within the listview. 46 DynamicListView listView = (DynamicListView) findViewById(R.id.listview); 48 listView.setCheeseList(mCheeseList); 49 listView.setAdapter(adapter); 50 listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
PinnedHeaderListAdapter.java | 94 public void configurePinnedHeaders(PinnedHeaderListView listView) { 109 listView.setHeaderInvisible(i, true); 113 int headerViewsCount = listView.getHeaderViewsCount(); 120 int position = listView.getPositionAt(topHeaderHeight) - headerViewsCount; 126 listView.setHeaderPinnedAtTop(i, topHeaderHeight, false); 127 topHeaderHeight += listView.getPinnedHeaderHeight(i); 135 int listHeight = listView.getHeight(); 138 int position = listView.getPositionAt(listHeight - bottomHeaderHeight) 149 int height = listView.getPinnedHeaderHeight(i); 152 listView.setHeaderPinnedAtBottom(i, listHeight - bottomHeaderHeight, false) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowListActivity.java | 8 import android.widget.ListView; 22 private ListView listView; 26 public ListView getListView() { 27 if (listView == null) { 28 if ((listView = findListView(getContentView())) == null) { 29 throw new RuntimeException("No ListView found under content view"); 32 return listView; 35 public void setListView(ListView view) { 36 listView = view [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/ |
ListViewTest.java | 32 import android.widget.ListView; 40 * If a view in a ListView requests a layout it should be remeasured. 45 ListView listView = new ListView(context); 48 listView.setAdapter(adapter); 53 listView.measure(measureSpec, measureSpec); 54 listView.layout(0, 0, 100, 100); 56 MockView childView = (MockView) listView.getChildAt(0); 60 listView.measure(measureSpec, measureSpec) [all...] |
/packages/apps/PhoneCommon/src/com/android/phone/common/util/ |
ViewUtil.java | 26 import android.widget.ListView; 81 * Adds padding to the bottom of the given {@link ListView} so that the floating action button 84 * @param listView to add the padding to 87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { 90 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(), 91 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding) [all...] |
/developers/build/prebuilts/gradle/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/ |
MultiSwipeRefreshLayout.java | 96 final AbsListView listView = (AbsListView) view; 97 return listView.getChildCount() > 0 && 98 (listView.getFirstVisiblePosition() > 0 99 || listView.getChildAt(0).getTop() < listView.getPaddingTop());
|
/developers/samples/android/ui/views/SwipeRefreshLayout/SwipeRefreshMultipleViews/Application/src/main/java/com/example/android/swiperefreshmultipleviews/ |
MultiSwipeRefreshLayout.java | 96 final AbsListView listView = (AbsListView) view; 97 return listView.getChildCount() > 0 && 98 (listView.getFirstVisiblePosition() > 0 99 || listView.getChildAt(0).getTop() < listView.getPaddingTop());
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.swiperefreshmultipleviews/ |
MultiSwipeRefreshLayout.java | 96 final AbsListView listView = (AbsListView) view; 97 return listView.getChildCount() > 0 && 98 (listView.getFirstVisiblePosition() > 0 99 || listView.getChildAt(0).getTop() < listView.getPaddingTop());
|
/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...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapSettings.java | 48 /* update expandable listview with correct items */ 49 ExpandableListView listView = 53 listView, mGroups, mLoader.getAccountsEnabledCount()); 54 listView.setAdapter(adapter);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AbsListViewTest.java | 51 import android.widget.ListView; 68 private ListView mListView; 104 mListView = (ListView)mActivity.findViewById(R.id.listview_default); 446 MyListView listView = new MyListView(mActivity); 447 listView.dispatchDraw(canvas); 494 MyListView listView = new MyListView(mActivity); 497 assertTrue(listView.checkLayoutParams(param1)); 500 assertFalse(listView.checkLayoutParams(param2)); 504 MyListView listView = new MyListView(mActivity); 505 assertEquals(0, listView.computeVerticalScrollRange()) [all...] |