public class ReactSwipeRefreshLayout
extends SwipeRefreshLayout
SwipeRefreshLayout
with ReactNative-specific functionality.Constructor and Description |
---|
ReactSwipeRefreshLayout(ReactContext reactContext) |
Modifier and Type | Method and Description |
---|---|
boolean |
onInterceptTouchEvent(android.view.MotionEvent ev) |
void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
void |
requestDisallowInterceptTouchEvent(boolean disallowIntercept)
SwipeRefreshLayout overrides ViewGroup#requestDisallowInterceptTouchEvent and
swallows it. |
void |
setProgressViewOffset(float offset) |
void |
setRefreshing(boolean refreshing) |
public ReactSwipeRefreshLayout(ReactContext reactContext)
public void setRefreshing(boolean refreshing)
public void setProgressViewOffset(float offset)
public void onLayout(boolean changed, int left, int top, int right, int bottom)
public void requestDisallowInterceptTouchEvent(boolean disallowIntercept)
SwipeRefreshLayout
overrides ViewGroup#requestDisallowInterceptTouchEvent
and
swallows it. This means that any component underneath SwipeRefreshLayout will now interact
incorrectly with Views that are above SwipeRefreshLayout. We fix that by transmitting the call
to this View's parents.public boolean onInterceptTouchEvent(android.view.MotionEvent ev)