Lines Matching refs:span

73      * check if there are gaps in the because of full span items. If it finds, it will re-layout
111 * The width or height per span, depending on the orientation.
184 * If a full span item is invalid / or created in reverse direction; it may create gaps in
231 * When a full span item is laid out in reverse direction, it sets a flag which we check when
297 * Intermediate gaps created by full span items are tracked via mLaidOutInvalidFullSpan field.
351 // equal, check span indices.
363 private boolean checkSpanForGap(Span span) {
365 if (span.getEndLine() < mPrimaryOrientation.getEndAfterPadding()) {
368 } else if (span.getStartLine() > mPrimaryOrientation.getStartAfterPadding()) {
375 * Sets the number of spans for the layout. This will invalidate all of the span assignments
379 * parameter is equal to current span count.
807 * Returns the adapter position of the first visible view for each span.
820 * @return The adapter position of the first visible item in each span. If a span does not have
821 * any items, {@link RecyclerView#NO_POSITION} is returned for that span.
830 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
839 * Returns the adapter position of the first completely visible view for each span.
852 * @return The adapter position of the first fully visible item in each span. If a span does
853 * not have any items, {@link RecyclerView#NO_POSITION} is returned for that span.
862 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
871 * Returns the adapter position of the last visible view for each span.
884 * @return The adapter position of the last visible item in each span. If a span does not have
885 * any items, {@link RecyclerView#NO_POSITION} is returned for that span.
894 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
903 * Returns the adapter position of the last completely visible view for each span.
916 * @return The adapter position of the last fully visible item in each span. If a span does not
917 * have any items, {@link RecyclerView#NO_POSITION} is returned for that span.
926 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
1155 * Finds the first fully visible child to be used as an anchor child if span count changes when
1353 * Checks whether it should invalidate span assignments in response to an adapter change.
1441 // assign span before measuring so that item decorators can get updated span index
1602 // traverse in reverse so that we end up assigning full span items to 0
1609 // traverse in reverse so that we end up assigning full span items to 0
1618 Log.d(TAG, "layout decorated pos: " + lp.getViewLayoutPosition() + ", span:"
1636 private void updateRemainingSpans(Span span, int layoutDir, int targetLine) {
1637 final int deletedSize = span.getDeletedSize();
1639 final int line = span.getStartLine();
1641 mRemainingSpans.set(span.mIndex, false);
1644 final int line = span.getEndLine();
1646 mRemainingSpans.set(span.mIndex, false);
1720 // Don't recycle the last View in a span not to lose span's start/end lines
1750 // Don't recycle the last View in a span not to lose span's start/end lines
1774 * @return True if last span is the first one we want to fill
1784 * Finds the span for the next view.
2058 * When set to true, the item will layout using all span area. That means, if orientation
2082 * @return The Span index of the View. If View is not yet assigned to any span, returns
2281 // normalized offset is how much this span can scroll
2367 * An array of mappings from adapter position to span.
2378 * Invalidates everything after this position, including full span information
2421 void setSpan(int position, Span span) {
2423 mData[position] = span.mIndex;
2509 * Returns when invalidation should end. e.g. hitting a full span position.
2578 * @param hasUnwantedGapAfter If true, when full span item has unwanted gaps, it will be
2602 * We keep information about full span items because they may create gaps in the UI.
2609 // A full span may be laid out in primary direction but may have gaps due to
2682 int mVisibleAnchorPosition; // Replacement for span info when spans are invalidated