Exemplo n.º 1
0
        /**
         * Initializes various states for this workspace.
         */
        private void InitWorkspace()
        {
            mScroller      = new Scroller(Context);
            mCurrentScreen = mDefaultScreen;

            var configuration = ViewConfiguration.Get(Context);

            mTouchSlop       = configuration.ScaledTouchSlop;
            mMaximumVelocity = configuration.ScaledMaximumFlingVelocity;

            mPagingTouchSlop = ReflectionUtils.CallWithDefault <int>(configuration, "ScaledPagingTouchStop", mTouchSlop * 2);
        }