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

Lines Matching refs:view

20 import android.support.v4.view.ViewCompat;
23 import android.view.View;
33 private View[] mSwipeableChildren;
45 * views need to be a descendant of this view.
51 mSwipeableChildren = new View[ids.length];
60 * we are signifying that the view is in a state where a refresh gesture can start.
70 for (View view : mSwipeableChildren) {
71 if (view != null && view.isShown() && !canViewScrollUp(view)) {
72 // If the view is shown, and can not scroll upwards, return false and start the
84 * Utility method to check whether a {@link View} can scroll up from it's current position.
88 private static boolean canViewScrollUp(View view) {
91 return ViewCompat.canScrollVertically(view, -1);
93 if (view instanceof AbsListView) {
94 // Pre-ICS we need to manually check the first visible item and the child view's top
96 final AbsListView listView = (AbsListView) view;
101 // For all other view types we just check the getScrollY() value
102 return view.getScrollY() > 0;