public override bool OnStartNestedScroll(View child, View target, [GeneratedEnum] ScrollAxis nestedScrollAxes)
        {
            Log.Debug(TAG, "OnStartNestedScroll");
            bool secondPart = (int)Build.VERSION.SdkInt < 21 || ScrollAxis.Vertical != 0;

            return(nestedScrollAxes != 0 && secondPart);
        }
Example #2
0
        public static object Scroll(ElementRequest request)
        {
            ScrollAxis axis     = (ScrollAxis)request.Session[new Guid(request.Parameters["axis"])];
            double     position = Convert.ToDouble(request.Body["position"]);

            axis.Position = position;
            return(null);
        }
        public override void OnNestedScrollAccepted(View child, View target, [GeneratedEnum] ScrollAxis axes)
        {
            Log.Debug(TAG, "OnNestedScrollAccepted");
            if (axes != 0 && Android.Views.ScrollAxis.Vertical != 0)
            {
                // A descendent started scrolling, so we'll observe it.
                _nestedScrollTarget = target;
                _nestedScrollTargetIsBeingDragged    = false;
                _nestedScrollTargetWasUnableToScroll = false;
            }

            base.OnNestedScrollAccepted(child, target, axes);
        }
Example #4
0
 public override void OnNestedScrollAccepted(AView child, AView target, [GeneratedEnum] ScrollAxis axes)
 {
     base.OnNestedScrollAccepted(child, target, axes);
     _nestedScrollAccepted = true;
     _nestedScrollCalled   = false;
 }
Example #5
0
        public static object GetScrollPosition(ElementRequest request)
        {
            ScrollAxis axis = (ScrollAxis)request.Session[new Guid(request.Parameters["axis"])];

            return(axis.Position);
        }
 public override bool OnStartNestedScroll(View child, View target, [GeneratedEnum] ScrollAxis axes)
 {
     return(OnStartNestedScroll(child, target, (int)axes, ViewCompat.TypeTouch));
 }
 public override void OnNestedScrollAccepted(View child, View target, [GeneratedEnum] ScrollAxis axes)
 {
     OnNestedScrollAccepted(child, target, (int)axes, ViewCompat.TypeTouch);
 }
        public bool OnStartNestedScroll(View child, View target, int axes, int type)
        {
            ScrollAxis axis = (ScrollAxis)axes;

            return(axis == ScrollAxis.Vertical);
        }
        /*
         * public bool DispatchNestedPreScroll(int dx, int dy, int[] consumed, int[] offsetInWindow, int type)
         * {
         *
         *      return _helper.DispatchNestedPreScroll(dx, dy, consumed, offsetInWindow, type);
         * }
         *
         * public bool DispatchNestedScroll(int dxConsumed, int dyConsumed, int dxUnconsumed, int dyUnconsumed, int[] offsetInWindow, int type)
         * {
         *      return _helper.DispatchNestedScroll(dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed, offsetInWindow, type);
         * }
         *
         * public bool InvokeHasNestedScrollingParent(int type)
         * {
         *      return _helper.InvokeHasNestedScrollingParent(type);
         * }
         *
         * public bool StartNestedScroll([GeneratedEnum] ScrollAxis axes, int type)
         * {
         *      return _helper.StartNestedScroll((int)axes, type);
         * }
         *
         * public void StopNestedScroll(int type)
         * {
         *      _helper.StopNestedScroll(type);
         * }
         */

        public override bool StartNestedScroll([GeneratedEnum] ScrollAxis axes)
        {
            return(_helper.StartNestedScroll((int)axes));
        }