Lines Matching defs:LEADING
57 * configured, grid index {@code 0} is fixed to the leading edge of the
600 private int getDefaultMargin(View c, boolean horizontal, boolean leading) {
607 private int getDefaultMargin(View c, boolean isAtEdge, boolean horizontal, boolean leading) {
608 return /*isAtEdge ? DEFAULT_CONTAINER_MARGIN :*/ getDefaultMargin(c, horizontal, leading);
611 private int getDefaultMargin(View c, LayoutParams p, boolean horizontal, boolean leading) {
618 boolean leading1 = (horizontal && isLayoutRtl()) ? !leading : leading;
621 return getDefaultMargin(c, isAtEdge, horizontal, leading);
624 int getMargin1(View view, boolean horizontal, boolean leading) {
627 (leading ? lp.leftMargin : lp.rightMargin) :
628 (leading ? lp.topMargin : lp.bottomMargin);
629 return margin == UNDEFINED ? getDefaultMargin(view, lp, horizontal, leading) : margin;
632 private int getMargin(View view, boolean horizontal, boolean leading) {
634 return getMargin1(view, horizontal, leading);
637 int[] margins = leading ? axis.getLeadingMargins() : axis.getTrailingMargins();
640 int index = leading ? spec.span.min : spec.span.max;
1601 private void computeMargins(boolean leading) {
1602 int[] margins = leading ? leadingMargins : trailingMargins;
1609 int index = leading ? span.min : span.max;
1610 margins[index] = max(margins[index], getMargin1(c, horizontal, leading));
1645 // leading edge of the parent. After this transformation some values may be
1748 * The row and column specs contain the leading and trailing indices along each axis
2328 * The <em>grid indices</em> are the leading and trailing edges of this cell group.
2559 private static final Alignment LEADING = new Alignment() {
2591 public static final Alignment TOP = LEADING;
2603 public static final Alignment START = LEADING;