Пример #1
0
        protected CustomSwipeLayout(BaseScreen activity)
            : base(activity)
        {
            using (ViewConfiguration configuration = ViewConfiguration.Get(activity))
                TouchSlop = configuration.ScaledTouchSlop;
            Scroller = new Scroller(activity);

            Behavour = new SwipeBehaviour(Scroll);

            SupportedGesture = GestureType.Any;

            Scrollable = true;
        }
Пример #2
0
        public CustomSwipeLayout()
        {
            _behaviour = new SwipeBehaviour(Scroll);

            this.Scrollable = true;
        }