Lines Matching refs:horizontal

180      * The horizontal orientation.
337 * when orientation is {@link #HORIZONTAL} the horizontal axis is laid out first.
573 * When this property is {@code false} GridLayout is at liberty to place the horizontal column
636 static Alignment getAlignment(int gravity, boolean horizontal) {
637 int mask = horizontal ? HORIZONTAL_GRAVITY_MASK : VERTICAL_GRAVITY_MASK;
638 int shift = horizontal ? AXIS_X_SHIFT : AXIS_Y_SHIFT;
642 return horizontal ? LEFT : TOP;
644 return horizontal ? RIGHT : BOTTOM;
659 private int getDefaultMargin(View c, boolean horizontal, boolean leading) {
666 private int getDefaultMargin(View c, boolean isAtEdge, boolean horizontal, boolean leading) {
667 return /*isAtEdge ? DEFAULT_CONTAINER_MARGIN :*/ getDefaultMargin(c, horizontal, leading);
670 private int getDefaultMargin(View c, LayoutParams p, boolean horizontal, boolean leading) {
674 Spec spec = horizontal ? p.columnSpec : p.rowSpec;
675 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
677 boolean leading1 = (horizontal && isLayoutRtl()) ? !leading : leading;
680 return getDefaultMargin(c, isAtEdge, horizontal, leading);
683 int getMargin1(View view, boolean horizontal, boolean leading) {
685 int margin = horizontal ?
688 return margin == UNDEFINED ? getDefaultMargin(view, lp, horizontal, leading) : margin;
691 private int getMargin(View view, boolean horizontal, boolean leading) {
693 return getMargin1(view, horizontal, leading);
695 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
698 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
704 private int getTotalMargin(View child, boolean horizontal) {
705 return getMargin(child, horizontal, true) + getMargin(child, horizontal, false);
742 final boolean horizontal = (mOrientation == HORIZONTAL);
743 final Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
753 final Spec majorSpec = horizontal ? lp.rowSpec : lp.columnSpec;
761 final Spec minorSpec = horizontal ? lp.columnSpec : lp.rowSpec;
788 if (horizontal) {
835 private void checkLayoutParams(LayoutParams lp, boolean horizontal) {
836 String groupName = horizontal ? "column" : "row";
837 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
842 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
1024 boolean horizontal = (mOrientation == HORIZONTAL);
1025 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1026 if (spec.getAbsoluteAlignment(horizontal) == FILL) {
1028 Axis axis = horizontal ? mHorizontalAxis : mVerticalAxis;
1031 int viewSize = cellSize - getTotalMargin(c, horizontal);
1032 if (horizontal) {
1085 private int getMeasurement(View c, boolean horizontal) {
1086 return horizontal ? c.getMeasuredWidth() : c.getMeasuredHeight();
1089 final int getMeasurementIncludingMargin(View c, boolean horizontal) {
1093 return getMeasurement(c, horizontal) + getTotalMargin(c, horizontal);
1110 Together they compute the locations of the vertical and horizontal lines of
1203 along either the horizontal or vertical axis. A GridLayout uses two instances of this class -
1204 distinguished by the "horizontal" flag which is true for the horizontal axis and false
1212 public final boolean horizontal;
1247 private Axis(boolean horizontal) {
1248 this.horizontal = horizontal;
1257 Spec spec = horizontal ? params.columnSpec : params.rowSpec;
1279 handleInvalidParams((horizontal ? "column" : "row") +
1301 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1302 Bounds bounds = spec.getAbsoluteAlignment(horizontal).getBounds();
1317 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1318 int size = getMeasurementIncludingMargin(c, horizontal) +
1552 String var = horizontal ? "x" : "y";
1613 String axisName = horizontal ? "horizontal" : "vertical";
1670 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1673 margins[index] = max(margins[index], getMargin1(c, horizontal, leading));
1712 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1743 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1799 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
1917 * gathered into their vertical and horizontal components and stored
2039 * The spec that defines the horizontal characteristics of the cell group
2398 protected int getOffset(GridLayout gl, View c, Alignment a, int size, boolean horizontal) {
2404 boolean horizontal = axis.horizontal;
2405 Alignment alignment = spec.getAbsoluteAlignment(axis.horizontal);
2511 * A Spec defines the horizontal or vertical characteristics of a group of
2521 * For column groups, this specifies the horizontal alignment.
2556 private Alignment getAbsoluteAlignment(boolean horizontal) {
2561 return horizontal ? START : BASELINE;
2764 * For horizontal alignments measurement is made from the left edge of the component.
2776 * horizontal alignments this method should return the width.