Lines Matching refs:to

10  * Unless required by applicable law or agreed to in writing, software
46 * It supports horizontal & vertical layout as well as an ability to layout children in reverse.
48 * Staggered grids are likely to have gaps at the edges of the layout. To avoid these gaps,
64 * Does not do anything to hide gaps.
76 * When scroll state is changed to {@link RecyclerView#SCROLL_STATE_IDLE}, StaggeredGrid will
78 * and move items to correct positions with animations.
80 * For example, if LayoutManager ends up with the following layout due to adapter changes:
87 * It will animate to the following state:
98 * While trying to find next view to focus, LayoutManager will not try to scroll more
138 * Temporary variable used during fill method to check which spans needs to be filled.
143 * When LayoutManager needs to scroll to a position, it sets this variable and requests a
149 * Used to keep the offset value when {@link #scrollToPositionWithOffset(int, int)} is
155 * Keeps the mapping between the adapter positions and spans. This is necessary to provide
166 * Saved state needs this information to properly layout on restore.
171 * Saved state and onLayout needs this information to re-layout properly
187 * Re-used rectangle to get child decor offsets.
212 * sorting distances to views being prefetched.
225 * "layoutManager". Defaults to single column and vertical.
329 // SGLM will require fresh layout call to recover state after detach
334 * Checks for gaps if we've reached to the top of the list.
424 * parameter is equal to current span count.
426 * @param spanCount Number of spans to layout
443 * Sets the orientation of the layout. StaggeredGridLayoutManager will do its best to keep
467 * For vertical layout, if it is set to <code>true</code>, first item will be at the bottom of
471 * When set to true, If {@link RecyclerView} is LTR, than it will layout from RTL, if
488 * Staggered grid may have gaps in the layout due to changes in the adapter. To avoid gaps,
545 * If you need to cancel current assignments, you can call this method which will clear all
554 * Calculates the views' layout order. (e.g. from end to start or start to end)
585 // we don't like it to wrap content in our non-scroll direction.
645 // Scroll to position is set, clear.
735 return; // nothing to do
864 // Use regular anchor position, offset according to pending offset and target
881 // no offset provided. Decide according to the child location
950 * @param into An array to put the results into. If you don't provide any, LayoutManager will
962 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
982 * @param into An array to put the results into. If you don't provide any, LayoutManager will
994 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
1014 * @param into An array to put the results into. If you don't provide any, LayoutManager will
1026 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
1046 * @param into An array to put the results into. If you don't provide any, LayoutManager will
1058 + " to span count. Expected:" + mSpanCount + ", array size:" + into.length);
1324 * Finds the first fully visible child to be used as an anchor child if span count changes when
1353 * This is for internal use. Not necessarily the child closest to start but the first child
1383 * This is for internal use. Not necessarily the child closest to bottom but the first child
1422 return; // nothing to fix
1441 return; // nothing to fix
1519 public void onItemsMoved(RecyclerView recyclerView, int from, int to, int itemCount) {
1520 handleUpdate(from, to, AdapterHelper.UpdateOp.MOVE);
1530 * Checks whether it should invalidate span assignments in response to an adapter change.
1578 // The target position we are trying to reach.
1602 // the default coordinate to add new view.
1807 // traverse in reverse so that we end up assigning full span items to 0
1814 // traverse in reverse so that we end up assigning full span items to 0
1914 // Don't recycle the last View in a span not to lose span's start/end lines
1945 // Don't recycle the last View in a span not to lose span's start/end lines
1969 * @return True if last span is the first one we want to fill
2088 * Scroll to the specified adapter position with the given offset from layout start.
2092 * If you are just trying to make a position visible, use {@link #scrollToPosition(int)}.
2115 * will be assigned, one-to-one, to spans, where ordering is based on which span extends
2118 * While this simplified model will be incorrect in some cases, it's difficult to know
2119 * item heights, or whether individual items will be full span prior to construction.
2121 * While this greedy estimation approach may underestimate the distance to prefetch items,
2122 * it's very unlikely to overestimate them, so distances can be conservatively used to know
2132 // build sorted list of distances to end of each span (though we don't care which is which)
2144 // span extends to the edge, so prefetch next item
2151 // then assign them in order to the next N views (where N = span count)
2344 // to find the best unfocusable candidate to become visible on the screen next. The search
2384 * Converts a focusDirection to orientation.
2391 * is applicable to current state, {@link LayoutState#INVALID_LAYOUT} otherwise.
2437 * expected to fill all of the space given to it.
2446 // Package scope to be able to access from tests.
2472 * When set to true, the item will layout using all span area. That means, if orientation
2494 * Returns the Span index to which this View is assigned.
2496 * @return The Span index of the View. If View is not yet assigned to any span, returns
2507 // Package scoped to access from tests.
2614 // Useful method to preserve positions on a re-layout.
2733 * visible refers to a view that overlaps but is not fully contained within RV's padded
2734 * bounded area. This view returned can be defined to have an area of overlap strictly
2736 * inclusion is enough to consider it partially visible. The latter case can then refer to
2740 * calculating the next unfocusable child to become visible on the screen.
2741 * @param fromIndex The child position index to start the search from.
2742 * @param toIndex The child position index to end the search at.
2743 * @param completelyVisible True if we have to only consider completely visible views,
2749 * bounded area is enough to consider it partially visible,
2771 // the child has to be completely visible to be returned.
2837 * An array of mappings from adapter position to span.
2838 * This only grows when a write happens and it grows up to the size of the adapter.
3027 // if it is not added to a position.
3079 // A full span may be laid out in primary direction but may have gaps due to
3081 // view is still on the screen after scroll stops, we have to recalculate layout
3253 * Data class to hold the information about an anchor position which is used in onLayout call.
3262 // this is where we save span reference lines in case we need to re-use them for multi-pass