com.tencent.smtt.sdk.WebViewCallbackClient |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
computeScroll(View view)
Called by a parent to request that a child update its values for mScrollX
and mScrollY if necessary.
| ||||||||||
abstract boolean |
dispatchTouchEvent(MotionEvent ev, View view)
Pass the touch screen motion event down to the target view, or this
view if it is the target.
| ||||||||||
abstract boolean |
onInterceptTouchEvent(MotionEvent ev, View view)
Implement this method to intercept all touch screen motion events.
| ||||||||||
abstract void |
onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY, View view)
Called by overScrollBy(int, int, int, int, int, int, int, int, boolean) to
respond to the results of an over-scroll operation.
| ||||||||||
abstract void |
onScrollChanged(int l, int t, int oldl, int oldt, View view)
This is called in response to an internal scroll in this view (i.e., the
view scrolled its own contents).
| ||||||||||
abstract boolean |
onTouchEvent(MotionEvent event, View view)
Implement this method to handle touch screen motion events.
| ||||||||||
abstract boolean |
overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX, int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent, View view)
Scroll the view with standard behavior for scrolling beyond the normal
content boundaries.
|
Called by a parent to request that a child update its values for mScrollX and mScrollY if necessary. This will typically be done if the child is animating a scroll using a android.widget.Scroller Scroller object.
Pass the touch screen motion event down to the target view, or this view if it is the target.
ev | The motion event to be dispatched. |
---|---|
view | the view |
Implement this method to intercept all touch screen motion events. This allows you to watch events as they are dispatched to your children, and take ownership of the current gesture at any point.
ev | The motion event being dispatched down the hierarchy. |
---|---|
view | The view |
onTouchEvent(MotionEvent, View)
. The current target will receive an ACTION_CANCEL event, and no further messages will be delivered here.
Called by overScrollBy(int, int, int, int, int, int, int, int, boolean) to respond to the results of an over-scroll operation.
scrollX | New X scroll value in pixels |
---|---|
scrollY | New Y scroll value in pixels |
clampedX | True if scrollX was clamped to an over-scroll boundary |
clampedY | True if scrollY was clamped to an over-scroll boundary |
view | the view |
This is called in response to an internal scroll in this view (i.e., the view scrolled its own contents). This is typically as a result of scrollBy(int, int) or scrollTo(int, int) having been called.
l | Current horizontal scroll origin. |
---|---|
t | Current vertical scroll origin. |
oldl | Previous horizontal scroll origin. |
oldt | Previous vertical scroll origin. |
view | the view |
Implement this method to handle touch screen motion events.
event | The motion event. |
---|---|
view | the view |
Scroll the view with standard behavior for scrolling beyond the normal content boundaries. Views that call this method should override onOverScrolled(int, int, boolean, boolean) to respond to the results of an over-scroll operation. Views can use this method to handle any touch or fling-based scrolling.
deltaX | Change in X in pixels |
---|---|
deltaY | Change in Y in pixels |
scrollX | Current X scroll value in pixels before applying deltaX |
scrollY | Current Y scroll value in pixels before applying deltaY |
scrollRangeX | Maximum content scroll range along the X axis |
scrollRangeY | Maximum content scroll range along the Y axis |
maxOverScrollX | Number of pixels to overscroll by in either direction along the X axis. |
maxOverScrollY | Number of pixels to overscroll by in either direction along the Y axis. |
isTouchEvent | true if this scroll operation is the result of a touch event. |
view | the view |