private void InitScrollView()
        {
            this.scroller  = new MyOverScroller();
            this.Focusable = true;
            this.DescendantFocusability = Android.Views.DescendantFocusability.AfterDescendants;
            this.SetWillNotDraw(false);

            ViewConfiguration configuration = ViewConfiguration.Get(this.Context);

            this.touchSlop         = configuration.ScaledTouchSlop;
            this.minimumVelocity   = configuration.ScaledMinimumFlingVelocity;
            this.maximumVelocity   = configuration.ScaledMaximumFlingVelocity;
            this.overflingDistance = 0;
        }
示例#2
0
        private void InitScrollView()
        {
            this.scroller = new MyOverScroller();
            this.Focusable = true;
            this.DescendantFocusability = Android.Views.DescendantFocusability.AfterDescendants;
            this.SetWillNotDraw(false);

            ViewConfiguration configuration = ViewConfiguration.Get(this.Context);
            this.touchSlop = configuration.ScaledTouchSlop;
            this.minimumVelocity = configuration.ScaledMinimumFlingVelocity;
            this.maximumVelocity = configuration.ScaledMaximumFlingVelocity;
            this.overflingDistance = 0;
        }