HomeSort by relevance Sort by last modified time
    Searched refs:listView (Results 1 - 25 of 145) sorted by null

1 2 3 4 5 6

  /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;
95 * Adds padding to the bottom of the given {@link ListView} so that the floating action button
98 * @param listView to add the padding to
101 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) {
104 listView.setPaddingRelative(listView.getPaddingStart(), listView.getPaddingTop(),
105 listView.getPaddingEnd(), listView.getPaddingBottom() + fabPadding)
    [all...]
  /external/robolectric/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);
  /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/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...]
  /external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/
SelectPopupDialog.java 15 import android.widget.ListView;
43 final ListView listView = new ListView(mContext);
44 listView.setCacheColorHint(0);
46 .setView(listView)
54 notifySelection(getSelectedIndices(listView));
68 listView.setAdapter(adapter);
69 listView.setFocusableInTouchMode(true);
72 listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/widget/
ListViewTest.java 31 import android.widget.ListView;
38 * If a view in a ListView requests a layout it should be remeasured.
43 ListView listView = new ListView(context);
46 listView.setAdapter(adapter);
51 listView.measure(measureSpec, measureSpec);
52 listView.layout(0, 0, 100, 100);
54 MockView childView = (MockView) listView.getChildAt(0);
58 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());
  /packages/apps/Bluetooth/src/com/android/bluetooth/map/
BluetoothMapEmailSettings.java 48 /* update expandable listview with correct items */
49 ExpandableListView listView = (ExpandableListView) findViewById(R.id.bluetooth_map_email_settings_list_view);
51 BluetoothMapEmailSettingsAdapter adapter = new BluetoothMapEmailSettingsAdapter(this,listView, mGroups, mLoader.getAccountsEnabledCount());
52 listView.setAdapter(adapter);
  /cts/tests/tests/widget/src/android/widget/cts/
AbsListViewTest.java 49 import android.widget.ListView;
66 private ListView mListView;
102 mListView = (ListView)mActivity.findViewById(R.id.listview_default);
380 MyListView listView = new MyListView(mActivity);
381 listView.dispatchDraw(canvas);
428 MyListView listView = new MyListView(mActivity);
431 assertTrue(listView.checkLayoutParams(param1));
434 assertFalse(listView.checkLayoutParams(param2));
438 MyListView listView = new MyListView(mActivity);
439 assertEquals(0, listView.computeVerticalScrollRange())
    [all...]
  /frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
HeadersFragment.java 126 final VerticalGridView listView = getVerticalGridView();
127 if (listView == null) {
131 FocusHighlightHelper.setupHeaderItemFocusHighlight(listView);
139 final VerticalGridView listView = getVerticalGridView();
140 if (listView != null) {
144 listView.setChildrenVisibility(View.VISIBLE);
146 listView.setChildrenVisibility(View.INVISIBLE);
246 final VerticalGridView listView = getVerticalGridView();
247 if (listView != null) {
248 listView.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS)
    [all...]
HeadersSupportFragment.java 128 final VerticalGridView listView = getVerticalGridView();
129 if (listView == null) {
133 FocusHighlightHelper.setupHeaderItemFocusHighlight(listView);
141 final VerticalGridView listView = getVerticalGridView();
142 if (listView != null) {
146 listView.setChildrenVisibility(View.VISIBLE);
148 listView.setChildrenVisibility(View.INVISIBLE);
248 final VerticalGridView listView = getVerticalGridView();
249 if (listView != null) {
250 listView.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS)
    [all...]
  /developers/build/prebuilts/gradle/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() {
  /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() {
  /development/samples/browseable/SpeedTracker/Wearable/src/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() {

Completed in 451 milliseconds

1 2 3 4 5 6