public void AssignFromView(View referenceChild, int position) { Coordinate = LayoutFillingStartsFromEnd ? OrientationHelper.GetDecoratedEnd(referenceChild) + OrientationHelper.TotalSpaceChange : OrientationHelper.GetDecoratedStart(referenceChild); Position = position; }
protected override int VisiblePortion(AView view, OrientationHelper orientationHelper, bool rtl) { if (rtl) { return(orientationHelper.TotalSpace - orientationHelper.GetDecoratedStart(view)); } return(orientationHelper.GetDecoratedEnd(view)); }
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;