Lines Matching defs:span

76  * <p>Item views may span multiple columns as specified by their {@link LayoutParams}.
284 public int span;
291 mMargins = new int[span * 2];
328 " s=" + span;
1313 final int span = Math.min(mColCount, lp.span);
1314 for (int spanIndex = 0; spanIndex < span; spanIndex++) {
1347 rec.span = Math.min(mColCount, lp.span);
2125 final int span = Math.min(mColCount, lp.span);
2126 final int widthSize = colWidth * span + mItemMargin * (span - 1);
2139 rec.span = span;
2147 // Given the span, check if there's enough space to put this view at this column.
2149 if (rec.span > 1) {
2151 if (nextColumn + 1 < rec.span) {
2155 if (mColCount - nextColumn < rec.span) {
2163 // the columns that this child will span. For LTR layout, we scan across from left to
2169 if (rec.span > 1) {
2170 for (int spanIndex = 0; spanIndex < rec.span; spanIndex++) {
2180 for (int spanIndex = 0; spanIndex < rec.span; spanIndex++) {
2317 // visible children. (We take span into account below.)
2324 final int span = Math.min(mColCount, lp.span);
2326 // Given the span, check if there's enough space to put this view at this column.
2328 if (span > 1) {
2330 // For RTL layout, if the current column index is less than the span of the
2332 // child out (e.g., if col == 0, but span == 2, then laying this child down
2337 if (col + 1 < span) {
2341 if (mColCount - col < span) {
2350 int widthSize = (colWidth * span + itemMargin * (span - 1));
2351 // If it is rtl, we layout the view from col to col - span +
2353 // additional width. So the check it span == col +1
2354 if ((mIsRtlLayout && span == col + 1)
2355 || (!mIsRtlLayout && span + col == mColCount)) {
2372 // the columns that this child will span. For LTR layout, we scan across from left to
2378 if (span > 1) {
2380 for (int spanIndex = 0; spanIndex < span; spanIndex++) {
2416 for (int spanIndex = 0; spanIndex < span; spanIndex++) {
2436 rec.span = span;
2543 final int span = Math.min(mColCount, lp.span);
2546 if (span > 1) {
2547 rec = getNextRecordUp(position, span);
2558 rec.span = span;
2559 } else if (span != rec.span) {
2560 rec.span = span;
2574 int widthSize = colWidth * span + itemMargin * (span - 1);
2575 // If it is rtl, we layout the view from nextCol to nextCol - span +
2577 // additional width. So the check it span == nextCol + 1
2578 if ((mIsRtlLayout && span == nextCol + 1)
2579 || (!mIsRtlLayout && span + nextCol == mColCount)) {
2604 for (int i = 0; i < span; i++) {
2637 // that this child is laid out from (nextCol) and move right for span amount. For RTL
2639 for (int i = 0; i < span; i++) {
2694 final int span = Math.min(mColCount, lp.span);
2697 if (span > 1) {
2698 rec = getNextRecordDown(position, span);
2709 rec.span = span;
2710 } else if (span != rec.span) {
2711 rec.span = span;
2726 int widthSize = colWidth * span + itemMargin * (span - 1);
2727 // If it is rtl, we layout the view from nextCol to nextCol - span +
2729 // additional width. So the check it span == nextCol +1
2730 if ((mIsRtlLayout && span == nextCol + 1)
2731 || (!mIsRtlLayout && span + nextCol == mColCount)) {
2751 // correct values such that there is a smooth edge across the child's span.
2755 for (int i = 0; i < span; i++) {
2782 for (int i = 0; i < span; i++) {
2830 * @param span
2833 final LayoutRecord getNextRecordUp(int position, int span) {
2835 if (rec == null || rec.span != span) {
2836 if (span > mColCount) {
2837 throw new IllegalStateException("Span larger than column count! Span:" + span
2841 rec.span = span;
2851 for (int i = span - 1; i < colCount; i++) {
2853 for (int j = i; j > i - span; j--) {
2865 for (int i = colCount - span; i >= 0; i--) {
2867 for (int j = i; j < i + span; j++) {
2884 // equal for all columns in the view's span. For LTR layout, we start at targetCol and
2886 for (int i = 0; i < span; i++) {
2915 final LayoutRecord getNextRecordDown(int position, int span) {
2917 if (rec == null || rec.span != span) {
2918 if (span > mColCount) {
2919 throw new IllegalStateException("Span larger than column count! Span:" + span
2924 rec.span = span;
2937 for (int i = colCount - 1; i >= span - 1; i--) {
2939 for (int j = i; j > i - span; j--) {
2951 for (int i = 0; i <= colCount - span; i++) {
2953 for (int j = i; j < i + span; j++) {
2970 // is equal for all columns in the view's span. For LTR layout, we start at targetCol and
2972 for (int i = 0; i < span; i++) {
3057 sglp.span = itemColumnSpan;
3118 sglp.span = mAdapter.getItemColumnSpan(item, position);
3679 * The number of columns this item should span
3681 public int span = 1;
3733 span = a.getInteger(SPAN_INDEX, 1);