本文整理匯總了Java中lecho.lib.hellocharts.gesture.ChartScroller.ScrollResult類的典型用法代碼示例。如果您正苦於以下問題:Java ScrollResult類的具體用法?Java ScrollResult怎麽用?Java ScrollResult使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ScrollResult類屬於lecho.lib.hellocharts.gesture.ChartScroller包,在下文中一共展示了ScrollResult類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: allowParentInterceptTouchEvent
import lecho.lib.hellocharts.gesture.ChartScroller.ScrollResult; //導入依賴的package包/類
/**
* Allow parent view to intercept touch events if chart cannot be scroll horizontally or vertically according to
* the
* current value of {@link #containerScrollType}.
*/
private void allowParentInterceptTouchEvent(ScrollResult scrollResult) {
if (null != viewParent) {
if (ContainerScrollType.HORIZONTAL == containerScrollType && !scrollResult.canScrollX
&& !scaleGestureDetector.isInProgress()) {
viewParent.requestDisallowInterceptTouchEvent(false);
} else if (ContainerScrollType.VERTICAL == containerScrollType && !scrollResult.canScrollY
&& !scaleGestureDetector.isInProgress()) {
viewParent.requestDisallowInterceptTouchEvent(false);
}
}
}
示例2: allowParentInterceptTouchEvent
import lecho.lib.hellocharts.gesture.ChartScroller.ScrollResult; //導入依賴的package包/類
private void allowParentInterceptTouchEvent(ScrollResult scrollResult) {
if (this.viewParent == null) {
return;
}
if (ContainerScrollType.HORIZONTAL == this.containerScrollType && !scrollResult.canScrollX && !this.scaleGestureDetector.isInProgress()) {
this.viewParent.requestDisallowInterceptTouchEvent(false);
} else if (ContainerScrollType.VERTICAL == this.containerScrollType && !scrollResult.canScrollY && !this.scaleGestureDetector.isInProgress()) {
this.viewParent.requestDisallowInterceptTouchEvent(false);
}
}