Home | History | Annotate | Download | only in com.example.android.swiperefreshlistfragment

Lines Matching refs:listView

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) {
155 return ViewCompat.canScrollVertically(listView, -1);
159 return listView.getChildCount() > 0 &&
160 (listView.getFirstVisiblePosition() > 0
161 || listView.getChildAt(0).getTop() < listView.getPaddingTop());