Пример #1
0
            public void AssignFromView(View referenceChild, int position)
            {
                Coordinate = LayoutFillingStartsFromEnd
                    ? OrientationHelper.GetDecoratedEnd(referenceChild) + OrientationHelper.TotalSpaceChange
                    : OrientationHelper.GetDecoratedStart(referenceChild);

                Position = position;
            }
Пример #2
0
        protected override int VisiblePortion(AView view, OrientationHelper orientationHelper, bool rtl)
        {
            if (rtl)
            {
                return(orientationHelper.TotalSpace - orientationHelper.GetDecoratedStart(view));
            }

            return(orientationHelper.GetDecoratedEnd(view));
        }
Пример #3
0
 private int DistanceToStart(View targetView, OrientationHelper helper)
 {
     return(helper.GetDecoratedStart(targetView) - helper.StartAfterPadding);
 }
 private int distanceToStart(View targetView, OrientationHelper helper)
 => helper.GetDecoratedStart(targetView) - helper.StartAfterPadding - startMargin;