예제 #1
0
        public NativeListViewBase() : base(ContextHelper.Current)
        {
            InitializeScrollbars();
            VerticalScrollBarEnabled   = true;
            HorizontalScrollBarEnabled = true;

            ViewCache = new BufferViewCache(this);
            SetViewCacheExtension(ViewCache);

            InitializeSnapHelper();

            MotionEventSplittingEnabled = false;
        }
예제 #2
0
        public NativeListViewBase() : base(ContextHelper.Current)
        {
            InitializeScrollbars();
            VerticalScrollBarEnabled   = true;
            HorizontalScrollBarEnabled = true;

            if (FeatureConfiguration.NativeListViewBase.RemoveItemAnimator)
            {
                SetItemAnimator(null);
            }

            ViewCache = new BufferViewCache(this);
            SetViewCacheExtension(ViewCache);

            InitializeSnapHelper();

            MotionEventSplittingEnabled = false;

            _shouldRecalibrateFlingVelocity = (int)Android.OS.Build.VERSION.SdkInt >= 28;             // Android.OS.BuildVersionCodes.P
        }
예제 #3
0
        public NativeListViewBase() : base(ContextHelper.Current)
        {
            InitializeScrollbars();
            VerticalScrollBarEnabled   = true;
            HorizontalScrollBarEnabled = true;

            if (FeatureConfiguration.NativeListViewBase.RemoveItemAnimator)
            {
                SetItemAnimator(null);
            }

            ViewCache = new BufferViewCache(this);
            SetViewCacheExtension(ViewCache);

            InitializeSnapHelper();

            _shouldRecalibrateFlingVelocity = (int)Android.OS.Build.VERSION.SdkInt >= 28;             // Android.OS.BuildVersionCodes.P

            // // This is required for animations not to be cut off by transformed ancestor views. (#1333)
            SetClipChildren(false);
        }