Lines Matching refs:State

285     final State mState = new State();
978 * {@link LayoutManager#smoothScrollToPosition(RecyclerView, State, int)} and create a
983 * {@link LayoutManager#smoothScrollToPosition(RecyclerView, State, int)} in your
987 * @see LayoutManager#smoothScrollToPosition(RecyclerView, State, int)
1101 * {@link RecyclerView.LayoutManager#computeHorizontalScrollOffset(RecyclerView.State)} in your
1125 * {@link RecyclerView.LayoutManager#computeHorizontalScrollExtent(RecyclerView.State)} in your
1129 * @see RecyclerView.LayoutManager#computeHorizontalScrollExtent(RecyclerView.State)
1145 * {@link RecyclerView.LayoutManager#computeHorizontalScrollRange(RecyclerView.State)} in your
1149 * @see RecyclerView.LayoutManager#computeHorizontalScrollRange(RecyclerView.State)
1166 * {@link RecyclerView.LayoutManager#computeVerticalScrollOffset(RecyclerView.State)} in your
1188 * {@link RecyclerView.LayoutManager#computeVerticalScrollExtent(RecyclerView.State)} in your
1192 * @see RecyclerView.LayoutManager#computeVerticalScrollExtent(RecyclerView.State)
1208 * {@link RecyclerView.LayoutManager#computeVerticalScrollRange(RecyclerView.State)} in your
1212 * @see RecyclerView.LayoutManager#computeVerticalScrollRange(RecyclerView.State)
3581 * less than {@link State#getItemCount()}.
3585 throw new IndexOutOfBoundsException("invalid position " + position + ". State "
4842 * rules as outlined in {@link #onLayoutChildren(Recycler, State)}.
4853 * then there will be two calls to {@link #onLayoutChildren(Recycler, State)} to
4917 * normal layout operation during {@link #onLayoutChildren(Recycler, State)}, the
4927 * {@link #onLayoutChildren(Recycler, State)}. Supporting predictive animations
4928 * means that {@link #onLayoutChildren(Recycler, State)} will be called twice;
4959 public void onLayoutChildren(Recycler recycler, State state) {
4960 Log.e(TAG, "You must override onLayoutChildren(Recycler recycler, State state) ");
5048 public int scrollHorizontallyBy(int dx, Recycler recycler, State state) {
5065 public int scrollVerticallyBy(int dy, Recycler recycler, State state) {
5107 * @param state Current State of RecyclerView
5110 public void smoothScrollToPosition(RecyclerView recyclerView, State state,
5162 * To be called only during {@link #onLayoutChildren(Recycler, State)} to add a view
5179 * To be called only during {@link #onLayoutChildren(Recycler, State)} to add a view
5662 * Note that this number is not necessarily equal to {@link State#getItemCount()}. In
5663 * methods where State is available, you should use {@link State#getItemCount()} instead.
5664 * For more details, check the documentation for {@link State#getItemCount()}.
5667 * @see State#getItemCount()
6115 State state) {
6123 * then {@link #onFocusSearchFailed(View, int, RecyclerView.Recycler, RecyclerView.State)}
6194 * @deprecated Use {@link #onRequestChildFocus(RecyclerView, State, View, View)}
6219 public boolean onRequestChildFocus(RecyclerView parent, State state, View child,
6337 public int computeHorizontalScrollExtent(State state) {
6348 * @param state Current State of RecyclerView where you can find total item count
6352 public int computeHorizontalScrollOffset(State state) {
6363 * @param state Current State of RecyclerView where you can find total item count
6367 public int computeHorizontalScrollRange(State state) {
6382 public int computeVerticalScrollExtent(State state) {
6393 * @param state Current State of RecyclerView where you can find total item count
6397 public int computeVerticalScrollOffset(State state) {
6408 * @param state Current State of RecyclerView where you can find total item count
6412 public int computeVerticalScrollRange(State state) {
6430 public void onMeasure(Recycler recycler, State state, int widthSpec, int heightSpec) {
6532 * {@link #getRowCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)},
6533 * {@link #getColumnCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)},
6534 * {@link #isLayoutHierarchical(RecyclerView.Recycler, RecyclerView.State)} and
6535 * {@link #getSelectionModeForAccessibility(RecyclerView.Recycler, RecyclerView.State)} for
6544 * @see #getRowCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)
6545 * @see #getColumnCountForAccessibility(RecyclerView.Recycler, RecyclerView.State)
6546 * @see #isLayoutHierarchical(RecyclerView.Recycler, RecyclerView.State)
6547 * @see #getSelectionModeForAccessibility(RecyclerView.Recycler, RecyclerView.State)
6549 public void onInitializeAccessibilityNodeInfo(Recycler recycler, State state,
6587 public void onInitializeAccessibilityEvent(Recycler recycler, State state,
6628 public void onInitializeAccessibilityNodeInfoForItem(Recycler recycler, State state,
6667 public int getSelectionModeForAccessibility(Recycler recycler, State state) {
6683 public int getRowCountForAccessibility(Recycler recycler, State state) {
6702 public int getColumnCountForAccessibility(Recycler recycler, State state) {
6719 public boolean isLayoutHierarchical(Recycler recycler, State state) {
6739 public boolean performAccessibilityAction(Recycler recycler, State state, int action,
6791 public boolean performAccessibilityActionForItem(Recycler recycler, State state, View view,
6813 * views (in {@link ItemDecoration#onDraw(Canvas, RecyclerView, RecyclerView.State) onDraw()}
6815 * RecyclerView.State)}.</p>
6827 public void onDraw(Canvas c, RecyclerView parent, State state) {
6833 * Override {@link #onDraw(Canvas, RecyclerView, RecyclerView.State)}
6848 public void onDrawOver(Canvas c, RecyclerView parent, State state) {
6854 * Override {@link #onDrawOver(Canvas, RecyclerView, RecyclerView.State)}
6863 * Use {@link #getItemOffsets(Rect, View, RecyclerView, State)}
6890 public void getItemOffsets(Rect outRect, View view, RecyclerView parent, State state) {
7148 * positions. All methods in {@link RecyclerView.LayoutManager}, {@link RecyclerView.State},
7555 * {@link #onTargetFound(android.view.View, RecyclerView.State, SmoothScroller.Action)} or
7556 * {@link #onSeekTargetStep(int, int, RecyclerView.State, SmoothScroller.Action)} until
7591 * {@link #onTargetFound(android.view.View, RecyclerView.State, SmoothScroller.Action)} or
7592 * {@link #onSeekTargetStep(int, int, RecyclerView.State, SmoothScroller.Action)}.
7733 abstract protected void onSeekTargetStep(int dx, int dy, State state, Action action);
7744 abstract protected void onTargetFound(View targetView, State state, Action action);
7987 * position or view focus. State object can also keep arbitrary data, identified by resource
7990 * To provide a well defined data bus between components, RecyclerView passes the same State
7992 * <p>If you implement custom components, you can use State's put/get/remove methods to pass
7995 public static class State {
8031 State reset() {
8191 return "State{" +