1 package android.support.v7.recyclerview { 2 3 public final class R { 4 ctor public R(); 5 } 6 7 public static final class R.attr { 8 ctor public R.attr(); 9 field public static int layoutManager; 10 field public static int reverseLayout; 11 field public static int spanCount; 12 field public static int stackFromEnd; 13 } 14 15 public static final class R.dimen { 16 ctor public R.dimen(); 17 field public static int item_touch_helper_max_drag_scroll_per_frame; 18 } 19 20 public static final class R.id { 21 ctor public R.id(); 22 field public static int item_touch_helper_previous_elevation; 23 } 24 25 public static final class R.styleable { 26 ctor public R.styleable(); 27 field public static final int[] RecyclerView; 28 field public static int RecyclerView_android_orientation; 29 field public static int RecyclerView_layoutManager; 30 field public static int RecyclerView_reverseLayout; 31 field public static int RecyclerView_spanCount; 32 field public static int RecyclerView_stackFromEnd; 33 } 34 35 } 36 37 package android.support.v7.util { 38 39 public class SortedList { 40 ctor public SortedList(java.lang.Class<T>, android.support.v7.util.SortedList.Callback<T>); 41 ctor public SortedList(java.lang.Class<T>, android.support.v7.util.SortedList.Callback<T>, int); 42 method public int add(T); 43 method public void addAll(T[], boolean); 44 method public void addAll(T...); 45 method public void addAll(java.util.Collection<T>); 46 method public void beginBatchedUpdates(); 47 method public void clear(); 48 method public void endBatchedUpdates(); 49 method public T get(int) throws java.lang.IndexOutOfBoundsException; 50 method public int indexOf(T); 51 method public void recalculatePositionOfItemAt(int); 52 method public boolean remove(T); 53 method public T removeItemAt(int); 54 method public int size(); 55 method public void updateItemAt(int, T); 56 field public static final int INVALID_POSITION = -1; // 0xffffffff 57 } 58 59 public static class SortedList.BatchedCallback extends android.support.v7.util.SortedList.Callback { 60 ctor public SortedList.BatchedCallback(android.support.v7.util.SortedList.Callback<T2>); 61 method public boolean areContentsTheSame(T2, T2); 62 method public boolean areItemsTheSame(T2, T2); 63 method public int compare(T2, T2); 64 method public void dispatchLastEvent(); 65 method public void onChanged(int, int); 66 method public void onInserted(int, int); 67 method public void onMoved(int, int); 68 method public void onRemoved(int, int); 69 } 70 71 public static abstract class SortedList.Callback implements java.util.Comparator { 72 ctor public SortedList.Callback(); 73 method public abstract boolean areContentsTheSame(T2, T2); 74 method public abstract boolean areItemsTheSame(T2, T2); 75 method public abstract int compare(T2, T2); 76 method public abstract void onChanged(int, int); 77 method public abstract void onInserted(int, int); 78 method public abstract void onMoved(int, int); 79 method public abstract void onRemoved(int, int); 80 } 81 82 } 83 84 package android.support.v7.widget { 85 86 public class DefaultItemAnimator extends android.support.v7.widget.RecyclerView.ItemAnimator { 87 ctor public DefaultItemAnimator(); 88 method public boolean animateAdd(android.support.v7.widget.RecyclerView.ViewHolder); 89 method public boolean animateChange(android.support.v7.widget.RecyclerView.ViewHolder, android.support.v7.widget.RecyclerView.ViewHolder, int, int, int, int); 90 method public boolean animateMove(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int, int); 91 method public boolean animateRemove(android.support.v7.widget.RecyclerView.ViewHolder); 92 method public void endAnimation(android.support.v7.widget.RecyclerView.ViewHolder); 93 method public void endAnimations(); 94 method public boolean isRunning(); 95 method public void runPendingAnimations(); 96 } 97 98 public class GridLayoutManager extends android.support.v7.widget.LinearLayoutManager { 99 ctor public GridLayoutManager(android.content.Context, android.util.AttributeSet, int, int); 100 ctor public GridLayoutManager(android.content.Context, int); 101 ctor public GridLayoutManager(android.content.Context, int, int, boolean); 102 method public int getSpanCount(); 103 method public android.support.v7.widget.GridLayoutManager.SpanSizeLookup getSpanSizeLookup(); 104 method public void setSpanCount(int); 105 method public void setSpanSizeLookup(android.support.v7.widget.GridLayoutManager.SpanSizeLookup); 106 field public static final int DEFAULT_SPAN_COUNT = -1; // 0xffffffff 107 } 108 109 public static final class GridLayoutManager.DefaultSpanSizeLookup extends android.support.v7.widget.GridLayoutManager.SpanSizeLookup { 110 ctor public GridLayoutManager.DefaultSpanSizeLookup(); 111 method public int getSpanSize(int); 112 } 113 114 public static class GridLayoutManager.LayoutParams extends android.support.v7.widget.RecyclerView.LayoutParams { 115 ctor public GridLayoutManager.LayoutParams(android.content.Context, android.util.AttributeSet); 116 ctor public GridLayoutManager.LayoutParams(int, int); 117 ctor public GridLayoutManager.LayoutParams(android.view.ViewGroup.MarginLayoutParams); 118 ctor public GridLayoutManager.LayoutParams(android.view.ViewGroup.LayoutParams); 119 ctor public GridLayoutManager.LayoutParams(android.support.v7.widget.RecyclerView.LayoutParams); 120 method public int getSpanIndex(); 121 method public int getSpanSize(); 122 field public static final int INVALID_SPAN_ID = -1; // 0xffffffff 123 } 124 125 public static abstract class GridLayoutManager.SpanSizeLookup { 126 ctor public GridLayoutManager.SpanSizeLookup(); 127 method public int getSpanGroupIndex(int, int); 128 method public int getSpanIndex(int, int); 129 method public abstract int getSpanSize(int); 130 method public void invalidateSpanIndexCache(); 131 method public boolean isSpanIndexCacheEnabled(); 132 method public void setSpanIndexCacheEnabled(boolean); 133 } 134 135 public class LinearLayoutManager extends android.support.v7.widget.RecyclerView.LayoutManager implements android.support.v7.widget.helper.ItemTouchHelper.ViewDropHandler { 136 ctor public LinearLayoutManager(android.content.Context); 137 ctor public LinearLayoutManager(android.content.Context, int, boolean); 138 ctor public LinearLayoutManager(android.content.Context, android.util.AttributeSet, int, int); 139 method public android.graphics.PointF computeScrollVectorForPosition(int); 140 method public int findFirstCompletelyVisibleItemPosition(); 141 method public int findFirstVisibleItemPosition(); 142 method public int findLastCompletelyVisibleItemPosition(); 143 method public int findLastVisibleItemPosition(); 144 method public android.support.v7.widget.RecyclerView.LayoutParams generateDefaultLayoutParams(); 145 method protected int getExtraLayoutSpace(android.support.v7.widget.RecyclerView.State); 146 method public int getOrientation(); 147 method public boolean getRecycleChildrenOnDetach(); 148 method public boolean getReverseLayout(); 149 method public boolean getStackFromEnd(); 150 method protected boolean isLayoutRTL(); 151 method public boolean isSmoothScrollbarEnabled(); 152 method public void prepareForDrop(android.view.View, android.view.View, int, int); 153 method public void scrollToPositionWithOffset(int, int); 154 method public void setOrientation(int); 155 method public void setRecycleChildrenOnDetach(boolean); 156 method public void setReverseLayout(boolean); 157 method public void setSmoothScrollbarEnabled(boolean); 158 method public void setStackFromEnd(boolean); 159 field public static final int HORIZONTAL = 0; // 0x0 160 field public static final int INVALID_OFFSET = -2147483648; // 0x80000000 161 field public static final int VERTICAL = 1; // 0x1 162 } 163 164 protected static class LinearLayoutManager.LayoutChunkResult { 165 ctor protected LinearLayoutManager.LayoutChunkResult(); 166 field public int mConsumed; 167 field public boolean mFinished; 168 field public boolean mFocusable; 169 field public boolean mIgnoreConsumed; 170 } 171 172 public abstract class LinearSmoothScroller extends android.support.v7.widget.RecyclerView.SmoothScroller { 173 ctor public LinearSmoothScroller(android.content.Context); 174 method public int calculateDtToFit(int, int, int, int, int); 175 method public int calculateDxToMakeVisible(android.view.View, int); 176 method public int calculateDyToMakeVisible(android.view.View, int); 177 method protected float calculateSpeedPerPixel(android.util.DisplayMetrics); 178 method protected int calculateTimeForDeceleration(int); 179 method protected int calculateTimeForScrolling(int); 180 method public abstract android.graphics.PointF computeScrollVectorForPosition(int); 181 method protected int getHorizontalSnapPreference(); 182 method protected int getVerticalSnapPreference(); 183 method protected void onSeekTargetStep(int, int, android.support.v7.widget.RecyclerView.State, android.support.v7.widget.RecyclerView.SmoothScroller.Action); 184 method protected void onStart(); 185 method protected void onStop(); 186 method protected void onTargetFound(android.view.View, android.support.v7.widget.RecyclerView.State, android.support.v7.widget.RecyclerView.SmoothScroller.Action); 187 method protected void updateActionForInterimTarget(android.support.v7.widget.RecyclerView.SmoothScroller.Action); 188 field public static final int SNAP_TO_ANY = 0; // 0x0 189 field public static final int SNAP_TO_END = 1; // 0x1 190 field public static final int SNAP_TO_START = -1; // 0xffffffff 191 field protected final android.view.animation.DecelerateInterpolator mDecelerateInterpolator; 192 field protected int mInterimTargetDx; 193 field protected int mInterimTargetDy; 194 field protected final android.view.animation.LinearInterpolator mLinearInterpolator; 195 field protected android.graphics.PointF mTargetVector; 196 } 197 198 public abstract class OrientationHelper { 199 method public static android.support.v7.widget.OrientationHelper createHorizontalHelper(android.support.v7.widget.RecyclerView.LayoutManager); 200 method public static android.support.v7.widget.OrientationHelper createOrientationHelper(android.support.v7.widget.RecyclerView.LayoutManager, int); 201 method public static android.support.v7.widget.OrientationHelper createVerticalHelper(android.support.v7.widget.RecyclerView.LayoutManager); 202 method public abstract int getDecoratedEnd(android.view.View); 203 method public abstract int getDecoratedMeasurement(android.view.View); 204 method public abstract int getDecoratedMeasurementInOther(android.view.View); 205 method public abstract int getDecoratedStart(android.view.View); 206 method public abstract int getEnd(); 207 method public abstract int getEndAfterPadding(); 208 method public abstract int getEndPadding(); 209 method public abstract int getStartAfterPadding(); 210 method public abstract int getTotalSpace(); 211 method public int getTotalSpaceChange(); 212 method public abstract void offsetChild(android.view.View, int); 213 method public abstract void offsetChildren(int); 214 method public void onLayoutComplete(); 215 field public static final int HORIZONTAL = 0; // 0x0 216 field public static final int VERTICAL = 1; // 0x1 217 field protected final android.support.v7.widget.RecyclerView.LayoutManager mLayoutManager; 218 } 219 220 public class RecyclerView extends android.view.ViewGroup { 221 ctor public RecyclerView(android.content.Context); 222 ctor public RecyclerView(android.content.Context, android.util.AttributeSet); 223 ctor public RecyclerView(android.content.Context, android.util.AttributeSet, int); 224 method public void addItemDecoration(android.support.v7.widget.RecyclerView.ItemDecoration, int); 225 method public void addItemDecoration(android.support.v7.widget.RecyclerView.ItemDecoration); 226 method public void addOnChildAttachStateChangeListener(android.support.v7.widget.RecyclerView.OnChildAttachStateChangeListener); 227 method public void addOnItemTouchListener(android.support.v7.widget.RecyclerView.OnItemTouchListener); 228 method public void addOnScrollListener(android.support.v7.widget.RecyclerView.OnScrollListener); 229 method public void clearOnChildAttachStateChangeListeners(); 230 method public void clearOnScrollListeners(); 231 method public int computeHorizontalScrollExtent(); 232 method public int computeHorizontalScrollOffset(); 233 method public int computeHorizontalScrollRange(); 234 method public int computeVerticalScrollExtent(); 235 method public int computeVerticalScrollOffset(); 236 method public int computeVerticalScrollRange(); 237 method public boolean drawChild(android.graphics.Canvas, android.view.View, long); 238 method public android.view.View findChildViewUnder(float, float); 239 method public android.support.v7.widget.RecyclerView.ViewHolder findViewHolderForAdapterPosition(int); 240 method public android.support.v7.widget.RecyclerView.ViewHolder findViewHolderForItemId(long); 241 method public android.support.v7.widget.RecyclerView.ViewHolder findViewHolderForLayoutPosition(int); 242 method public deprecated android.support.v7.widget.RecyclerView.ViewHolder findViewHolderForPosition(int); 243 method public boolean fling(int, int); 244 method public android.support.v7.widget.RecyclerView.Adapter getAdapter(); 245 method public int getChildAdapterPosition(android.view.View); 246 method public long getChildItemId(android.view.View); 247 method public int getChildLayoutPosition(android.view.View); 248 method public deprecated int getChildPosition(android.view.View); 249 method public android.support.v7.widget.RecyclerView.ViewHolder getChildViewHolder(android.view.View); 250 method public android.support.v7.widget.RecyclerViewAccessibilityDelegate getCompatAccessibilityDelegate(); 251 method public android.support.v7.widget.RecyclerView.ItemAnimator getItemAnimator(); 252 method public android.support.v7.widget.RecyclerView.LayoutManager getLayoutManager(); 253 method public int getMaxFlingVelocity(); 254 method public int getMinFlingVelocity(); 255 method public android.support.v7.widget.RecyclerView.RecycledViewPool getRecycledViewPool(); 256 method public int getScrollState(); 257 method public boolean hasFixedSize(); 258 method public boolean hasPendingAdapterUpdates(); 259 method public void invalidateItemDecorations(); 260 method public boolean isAnimating(); 261 method public boolean isComputingLayout(); 262 method public void offsetChildrenHorizontal(int); 263 method public void offsetChildrenVertical(int); 264 method public void onChildAttachedToWindow(android.view.View); 265 method public void onChildDetachedFromWindow(android.view.View); 266 method public void onDraw(android.graphics.Canvas); 267 method protected void onLayout(boolean, int, int, int, int); 268 method public void onScrollStateChanged(int); 269 method public void onScrolled(int, int); 270 method public void removeItemDecoration(android.support.v7.widget.RecyclerView.ItemDecoration); 271 method public void removeOnChildAttachStateChangeListener(android.support.v7.widget.RecyclerView.OnChildAttachStateChangeListener); 272 method public void removeOnItemTouchListener(android.support.v7.widget.RecyclerView.OnItemTouchListener); 273 method public void removeOnScrollListener(android.support.v7.widget.RecyclerView.OnScrollListener); 274 method public void scrollToPosition(int); 275 method public void setAccessibilityDelegateCompat(android.support.v7.widget.RecyclerViewAccessibilityDelegate); 276 method public void setAdapter(android.support.v7.widget.RecyclerView.Adapter); 277 method public void setChildDrawingOrderCallback(android.support.v7.widget.RecyclerView.ChildDrawingOrderCallback); 278 method public void setHasFixedSize(boolean); 279 method public void setItemAnimator(android.support.v7.widget.RecyclerView.ItemAnimator); 280 method public void setItemViewCacheSize(int); 281 method public void setLayoutManager(android.support.v7.widget.RecyclerView.LayoutManager); 282 method public deprecated void setOnScrollListener(android.support.v7.widget.RecyclerView.OnScrollListener); 283 method public void setRecycledViewPool(android.support.v7.widget.RecyclerView.RecycledViewPool); 284 method public void setRecyclerListener(android.support.v7.widget.RecyclerView.RecyclerListener); 285 method public void setScrollingTouchSlop(int); 286 method public void setViewCacheExtension(android.support.v7.widget.RecyclerView.ViewCacheExtension); 287 method public void smoothScrollBy(int, int); 288 method public void smoothScrollToPosition(int); 289 method public void stopScroll(); 290 method public void swapAdapter(android.support.v7.widget.RecyclerView.Adapter, boolean); 291 field public static final int HORIZONTAL = 0; // 0x0 292 field public static final int INVALID_TYPE = -1; // 0xffffffff 293 field public static final long NO_ID = -1L; // 0xffffffffffffffffL 294 field public static final int NO_POSITION = -1; // 0xffffffff 295 field public static final int SCROLL_STATE_DRAGGING = 1; // 0x1 296 field public static final int SCROLL_STATE_IDLE = 0; // 0x0 297 field public static final int SCROLL_STATE_SETTLING = 2; // 0x2 298 field public static final int TOUCH_SLOP_DEFAULT = 0; // 0x0 299 field public static final int TOUCH_SLOP_PAGING = 1; // 0x1 300 field public static final int VERTICAL = 1; // 0x1 301 } 302 303 public static abstract class RecyclerView.Adapter { 304 ctor public RecyclerView.Adapter(); 305 method public final void bindViewHolder(VH, int); 306 method public final VH createViewHolder(android.view.ViewGroup, int); 307 method public abstract int getItemCount(); 308 method public long getItemId(int); 309 method public int getItemViewType(int); 310 method public final boolean hasObservers(); 311 method public final boolean hasStableIds(); 312 method public final void notifyDataSetChanged(); 313 method public final void notifyItemChanged(int); 314 method public final void notifyItemInserted(int); 315 method public final void notifyItemMoved(int, int); 316 method public final void notifyItemRangeChanged(int, int); 317 method public final void notifyItemRangeInserted(int, int); 318 method public final void notifyItemRangeRemoved(int, int); 319 method public final void notifyItemRemoved(int); 320 method public void onAttachedToRecyclerView(android.support.v7.widget.RecyclerView); 321 method public abstract void onBindViewHolder(VH, int); 322 method public abstract VH onCreateViewHolder(android.view.ViewGroup, int); 323 method public void onDetachedFromRecyclerView(android.support.v7.widget.RecyclerView); 324 method public boolean onFailedToRecycleView(VH); 325 method public void onViewAttachedToWindow(VH); 326 method public void onViewDetachedFromWindow(VH); 327 method public void onViewRecycled(VH); 328 method public void registerAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver); 329 method public void setHasStableIds(boolean); 330 method public void unregisterAdapterDataObserver(android.support.v7.widget.RecyclerView.AdapterDataObserver); 331 } 332 333 public static abstract class RecyclerView.AdapterDataObserver { 334 ctor public RecyclerView.AdapterDataObserver(); 335 method public void onChanged(); 336 method public void onItemRangeChanged(int, int); 337 method public void onItemRangeInserted(int, int); 338 method public void onItemRangeMoved(int, int, int); 339 method public void onItemRangeRemoved(int, int); 340 } 341 342 public static abstract interface RecyclerView.ChildDrawingOrderCallback { 343 method public abstract int onGetChildDrawingOrder(int, int); 344 } 345 346 public static abstract class RecyclerView.ItemAnimator { 347 ctor public RecyclerView.ItemAnimator(); 348 method public abstract boolean animateAdd(android.support.v7.widget.RecyclerView.ViewHolder); 349 method public abstract boolean animateChange(android.support.v7.widget.RecyclerView.ViewHolder, android.support.v7.widget.RecyclerView.ViewHolder, int, int, int, int); 350 method public abstract boolean animateMove(android.support.v7.widget.RecyclerView.ViewHolder, int, int, int, int); 351 method public abstract boolean animateRemove(android.support.v7.widget.RecyclerView.ViewHolder); 352 method public final void dispatchAddFinished(android.support.v7.widget.RecyclerView.ViewHolder); 353 method public final void dispatchAddStarting(android.support.v7.widget.RecyclerView.ViewHolder); 354 method public final void dispatchAnimationsFinished(); 355 method public final void dispatchChangeFinished(android.support.v7.widget.RecyclerView.ViewHolder, boolean); 356 method public final void dispatchChangeStarting(android.support.v7.widget.RecyclerView.ViewHolder, boolean); 357 method public final void dispatchMoveFinished(android.support.v7.widget.RecyclerView.ViewHolder); 358 method public final void dispatchMoveStarting(android.support.v7.widget.RecyclerView.ViewHolder); 359 method public final void dispatchRemoveFinished(android.support.v7.widget.RecyclerView.ViewHolder); 360 method public final void dispatchRemoveStarting(android.support.v7.widget.RecyclerView.ViewHolder); 361 method public abstract void endAnimation(android.support.v7.widget.RecyclerView.ViewHolder); 362 method public abstract void endAnimations(); 363 method public long getAddDuration(); 364 method public long getChangeDuration(); 365 method public long getMoveDuration(); 366 method public long getRemoveDuration(); 367 method public boolean getSupportsChangeAnimations(); 368 method public abstract boolean isRunning(); 369 method public final boolean isRunning(android.support.v7.widget.RecyclerView.ItemAnimator.ItemAnimatorFinishedListener); 370 method public void onAddFinished(android.support.v7.widget.RecyclerView.ViewHolder); 371 method public void onAddStarting(android.support.v7.widget.RecyclerView.ViewHolder); 372 method public void onChangeFinished(android.support.v7.widget.RecyclerView.ViewHolder, boolean); 373 method public void onChangeStarting(android.support.v7.widget.RecyclerView.ViewHolder, boolean); 374 method public void onMoveFinished(android.support.v7.widget.RecyclerView.ViewHolder); 375 method public void onMoveStarting(android.support.v7.widget.RecyclerView.ViewHolder); 376 method public void onRemoveFinished(android.support.v7.widget.RecyclerView.ViewHolder); 377 method public void onRemoveStarting(android.support.v7.widget.RecyclerView.ViewHolder); 378 method public abstract void runPendingAnimations(); 379 method public void setAddDuration(long); 380 method public void setChangeDuration(long); 381 method public void setMoveDuration(long); 382 method public void setRemoveDuration(long); 383 method public void setSupportsChangeAnimations(boolean); 384 } 385 386 public static abstract interface RecyclerView.ItemAnimator.ItemAnimatorFinishedListener { 387 method public abstract void onAnimationsFinished(); 388 } 389 390 public static abstract class RecyclerView.ItemDecoration { 391 ctor public RecyclerView.ItemDecoration(); 392 method public deprecated void getItemOffsets(android.graphics.Rect, int, android.support.v7.widget.RecyclerView); 393 method public void getItemOffsets(android.graphics.Rect, android.view.View, android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.State); 394 method public void onDraw(android.graphics.Canvas, android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.State); 395 method public deprecated void onDraw(android.graphics.Canvas, android.support.v7.widget.RecyclerView); 396 method public void onDrawOver(android.graphics.Canvas, android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.State); 397 method public deprecated void onDrawOver(android.graphics.Canvas, android.support.v7.widget.RecyclerView); 398 } 399 400 public static abstract class RecyclerView.LayoutManager { 401 ctor public RecyclerView.LayoutManager(); 402 method public void addDisappearingView(android.view.View); 403 method public void addDisappearingView(android.view.View, int); 404 method public void addView(android.view.View); 405 method public void addView(android.view.View, int); 406 method public void assertInLayoutOrScroll(java.lang.String); 407 method public void assertNotInLayoutOrScroll(java.lang.String); 408 method public void attachView(android.view.View, int, android.support.v7.widget.RecyclerView.LayoutParams); 409 method public void attachView(android.view.View, int); 410 method public void attachView(android.view.View); 411 method public void calculateItemDecorationsForChild(android.view.View, android.graphics.Rect); 412 method public boolean canScrollHorizontally(); 413 method public boolean canScrollVertically(); 414 method public boolean checkLayoutParams(android.support.v7.widget.RecyclerView.LayoutParams); 415 method public int computeHorizontalScrollExtent(android.support.v7.widget.RecyclerView.State); 416 method public int computeHorizontalScrollOffset(android.support.v7.widget.RecyclerView.State); 417 method public int computeHorizontalScrollRange(android.support.v7.widget.RecyclerView.State); 418 method public int computeVerticalScrollExtent(android.support.v7.widget.RecyclerView.State); 419 method public int computeVerticalScrollOffset(android.support.v7.widget.RecyclerView.State); 420 method public int computeVerticalScrollRange(android.support.v7.widget.RecyclerView.State); 421 method public void detachAndScrapAttachedViews(android.support.v7.widget.RecyclerView.Recycler); 422 method public void detachAndScrapView(android.view.View, android.support.v7.widget.RecyclerView.Recycler); 423 method public void detachAndScrapViewAt(int, android.support.v7.widget.RecyclerView.Recycler); 424 method public void detachView(android.view.View); 425 method public void detachViewAt(int); 426 method public void endAnimation(android.view.View); 427 method public android.view.View findViewByPosition(int); 428 method public abstract android.support.v7.widget.RecyclerView.LayoutParams generateDefaultLayoutParams(); 429 method public android.support.v7.widget.RecyclerView.LayoutParams generateLayoutParams(android.view.ViewGroup.LayoutParams); 430 method public android.support.v7.widget.RecyclerView.LayoutParams generateLayoutParams(android.content.Context, android.util.AttributeSet); 431 method public int getBaseline(); 432 method public int getBottomDecorationHeight(android.view.View); 433 method public android.view.View getChildAt(int); 434 method public int getChildCount(); 435 method public static int getChildMeasureSpec(int, int, int, boolean); 436 method public boolean getClipToPadding(); 437 method public int getColumnCountForAccessibility(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 438 method public int getDecoratedBottom(android.view.View); 439 method public int getDecoratedLeft(android.view.View); 440 method public int getDecoratedMeasuredHeight(android.view.View); 441 method public int getDecoratedMeasuredWidth(android.view.View); 442 method public int getDecoratedRight(android.view.View); 443 method public int getDecoratedTop(android.view.View); 444 method public android.view.View getFocusedChild(); 445 method public int getHeight(); 446 method public int getItemCount(); 447 method public int getItemViewType(android.view.View); 448 method public int getLayoutDirection(); 449 method public int getLeftDecorationWidth(android.view.View); 450 method public int getMinimumHeight(); 451 method public int getMinimumWidth(); 452 method public int getPaddingBottom(); 453 method public int getPaddingEnd(); 454 method public int getPaddingLeft(); 455 method public int getPaddingRight(); 456 method public int getPaddingStart(); 457 method public int getPaddingTop(); 458 method public int getPosition(android.view.View); 459 method public static android.support.v7.widget.RecyclerView.LayoutManager.Properties getProperties(android.content.Context, android.util.AttributeSet, int, int); 460 method public int getRightDecorationWidth(android.view.View); 461 method public int getRowCountForAccessibility(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 462 method public int getSelectionModeForAccessibility(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 463 method public int getTopDecorationHeight(android.view.View); 464 method public int getWidth(); 465 method public boolean hasFocus(); 466 method public void ignoreView(android.view.View); 467 method public boolean isAttachedToWindow(); 468 method public boolean isFocused(); 469 method public boolean isLayoutHierarchical(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 470 method public boolean isSmoothScrolling(); 471 method public void layoutDecorated(android.view.View, int, int, int, int); 472 method public void measureChild(android.view.View, int, int); 473 method public void measureChildWithMargins(android.view.View, int, int); 474 method public void moveView(int, int); 475 method public void offsetChildrenHorizontal(int); 476 method public void offsetChildrenVertical(int); 477 method public void onAdapterChanged(android.support.v7.widget.RecyclerView.Adapter, android.support.v7.widget.RecyclerView.Adapter); 478 method public boolean onAddFocusables(android.support.v7.widget.RecyclerView, java.util.ArrayList<android.view.View>, int, int); 479 method public void onAttachedToWindow(android.support.v7.widget.RecyclerView); 480 method public deprecated void onDetachedFromWindow(android.support.v7.widget.RecyclerView); 481 method public void onDetachedFromWindow(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.Recycler); 482 method public android.view.View onFocusSearchFailed(android.view.View, int, android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 483 method public void onInitializeAccessibilityEvent(android.view.accessibility.AccessibilityEvent); 484 method public void onInitializeAccessibilityEvent(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State, android.view.accessibility.AccessibilityEvent); 485 method public void onInitializeAccessibilityNodeInfo(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat); 486 method public void onInitializeAccessibilityNodeInfoForItem(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State, android.view.View, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat); 487 method public android.view.View onInterceptFocusSearch(android.view.View, int); 488 method public void onItemsAdded(android.support.v7.widget.RecyclerView, int, int); 489 method public void onItemsChanged(android.support.v7.widget.RecyclerView); 490 method public void onItemsMoved(android.support.v7.widget.RecyclerView, int, int, int); 491 method public void onItemsRemoved(android.support.v7.widget.RecyclerView, int, int); 492 method public void onItemsUpdated(android.support.v7.widget.RecyclerView, int, int); 493 method public void onLayoutChildren(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 494 method public void onMeasure(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State, int, int); 495 method public deprecated boolean onRequestChildFocus(android.support.v7.widget.RecyclerView, android.view.View, android.view.View); 496 method public boolean onRequestChildFocus(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.State, android.view.View, android.view.View); 497 method public void onRestoreInstanceState(android.os.Parcelable); 498 method public android.os.Parcelable onSaveInstanceState(); 499 method public void onScrollStateChanged(int); 500 method public boolean performAccessibilityAction(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State, int, android.os.Bundle); 501 method public boolean performAccessibilityActionForItem(android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State, android.view.View, int, android.os.Bundle); 502 method public void postOnAnimation(java.lang.Runnable); 503 method public void removeAllViews(); 504 method public void removeAndRecycleAllViews(android.support.v7.widget.RecyclerView.Recycler); 505 method public void removeAndRecycleView(android.view.View, android.support.v7.widget.RecyclerView.Recycler); 506 method public void removeAndRecycleViewAt(int, android.support.v7.widget.RecyclerView.Recycler); 507 method public boolean removeCallbacks(java.lang.Runnable); 508 method public void removeDetachedView(android.view.View); 509 method public void removeView(android.view.View); 510 method public void removeViewAt(int); 511 method public boolean requestChildRectangleOnScreen(android.support.v7.widget.RecyclerView, android.view.View, android.graphics.Rect, boolean); 512 method public void requestLayout(); 513 method public void requestSimpleAnimationsInNextLayout(); 514 method public int scrollHorizontallyBy(int, android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 515 method public void scrollToPosition(int); 516 method public int scrollVerticallyBy(int, android.support.v7.widget.RecyclerView.Recycler, android.support.v7.widget.RecyclerView.State); 517 method public void setMeasuredDimension(int, int); 518 method public void smoothScrollToPosition(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.State, int); 519 method public void startSmoothScroll(android.support.v7.widget.RecyclerView.SmoothScroller); 520 method public void stopIgnoringView(android.view.View); 521 method public boolean supportsPredictiveItemAnimations(); 522 } 523 524 public static class RecyclerView.LayoutManager.Properties { 525 ctor public RecyclerView.LayoutManager.Properties(); 526 field public int orientation; 527 field public boolean reverseLayout; 528 field public int spanCount; 529 field public boolean stackFromEnd; 530 } 531 532 public static class RecyclerView.LayoutParams extends android.view.ViewGroup.MarginLayoutParams { 533 ctor public RecyclerView.LayoutParams(android.content.Context, android.util.AttributeSet); 534 ctor public RecyclerView.LayoutParams(int, int); 535 ctor public RecyclerView.LayoutParams(android.view.ViewGroup.MarginLayoutParams); 536 ctor public RecyclerView.LayoutParams(android.view.ViewGroup.LayoutParams); 537 ctor public RecyclerView.LayoutParams(android.support.v7.widget.RecyclerView.LayoutParams); 538 method public int getViewAdapterPosition(); 539 method public int getViewLayoutPosition(); 540 method public deprecated int getViewPosition(); 541 method public boolean isItemChanged(); 542 method public boolean isItemRemoved(); 543 method public boolean isViewInvalid(); 544 method public boolean viewNeedsUpdate(); 545 } 546 547 public static abstract interface RecyclerView.OnChildAttachStateChangeListener { 548 method public abstract void onChildViewAttachedToWindow(android.view.View); 549 method public abstract void onChildViewDetachedFromWindow(android.view.View); 550 } 551 552 public static abstract interface RecyclerView.OnItemTouchListener { 553 method public abstract boolean onInterceptTouchEvent(android.support.v7.widget.RecyclerView, android.view.MotionEvent); 554 method public abstract void onRequestDisallowInterceptTouchEvent(boolean); 555 method public abstract void onTouchEvent(android.support.v7.widget.RecyclerView, android.view.MotionEvent); 556 } 557 558 public static abstract class RecyclerView.OnScrollListener { 559 ctor public RecyclerView.OnScrollListener(); 560 method public void onScrollStateChanged(android.support.v7.widget.RecyclerView, int); 561 method public void onScrolled(android.support.v7.widget.RecyclerView, int, int); 562 } 563 564 public static class RecyclerView.RecycledViewPool { 565 ctor public RecyclerView.RecycledViewPool(); 566 method public void clear(); 567 method public android.support.v7.widget.RecyclerView.ViewHolder getRecycledView(int); 568 method public void putRecycledView(android.support.v7.widget.RecyclerView.ViewHolder); 569 method public void setMaxRecycledViews(int, int); 570 } 571 572 public final class RecyclerView.Recycler { 573 ctor public RecyclerView.Recycler(); 574 method public void bindViewToPosition(android.view.View, int); 575 method public void clear(); 576 method public int convertPreLayoutPositionToPostLayout(int); 577 method public java.util.List<android.support.v7.widget.RecyclerView.ViewHolder> getScrapList(); 578 method public android.view.View getViewForPosition(int); 579 method public void recycleView(android.view.View); 580 method public void setViewCacheSize(int); 581 } 582 583 public static abstract interface RecyclerView.RecyclerListener { 584 method public abstract void onViewRecycled(android.support.v7.widget.RecyclerView.ViewHolder); 585 } 586 587 public static class RecyclerView.SimpleOnItemTouchListener implements android.support.v7.widget.RecyclerView.OnItemTouchListener { 588 ctor public RecyclerView.SimpleOnItemTouchListener(); 589 method public boolean onInterceptTouchEvent(android.support.v7.widget.RecyclerView, android.view.MotionEvent); 590 method public void onRequestDisallowInterceptTouchEvent(boolean); 591 method public void onTouchEvent(android.support.v7.widget.RecyclerView, android.view.MotionEvent); 592 } 593 594 public static abstract class RecyclerView.SmoothScroller { 595 ctor public RecyclerView.SmoothScroller(); 596 method public android.view.View findViewByPosition(int); 597 method public int getChildCount(); 598 method public int getChildPosition(android.view.View); 599 method public android.support.v7.widget.RecyclerView.LayoutManager getLayoutManager(); 600 method public int getTargetPosition(); 601 method public deprecated void instantScrollToPosition(int); 602 method public boolean isPendingInitialRun(); 603 method public boolean isRunning(); 604 method protected void normalize(android.graphics.PointF); 605 method protected void onChildAttachedToWindow(android.view.View); 606 method protected abstract void onSeekTargetStep(int, int, android.support.v7.widget.RecyclerView.State, android.support.v7.widget.RecyclerView.SmoothScroller.Action); 607 method protected abstract void onStart(); 608 method protected abstract void onStop(); 609 method protected abstract void onTargetFound(android.view.View, android.support.v7.widget.RecyclerView.State, android.support.v7.widget.RecyclerView.SmoothScroller.Action); 610 method public void setTargetPosition(int); 611 method protected final void stop(); 612 } 613 614 public static class RecyclerView.SmoothScroller.Action { 615 ctor public RecyclerView.SmoothScroller.Action(int, int); 616 ctor public RecyclerView.SmoothScroller.Action(int, int, int); 617 ctor public RecyclerView.SmoothScroller.Action(int, int, int, android.view.animation.Interpolator); 618 method public int getDuration(); 619 method public int getDx(); 620 method public int getDy(); 621 method public android.view.animation.Interpolator getInterpolator(); 622 method public void jumpTo(int); 623 method public void setDuration(int); 624 method public void setDx(int); 625 method public void setDy(int); 626 method public void setInterpolator(android.view.animation.Interpolator); 627 method public void update(int, int, int, android.view.animation.Interpolator); 628 field public static final int UNDEFINED_DURATION = -2147483648; // 0x80000000 629 } 630 631 public static class RecyclerView.State { 632 ctor public RecyclerView.State(); 633 method public boolean didStructureChange(); 634 method public T get(int); 635 method public int getItemCount(); 636 method public int getTargetScrollPosition(); 637 method public boolean hasTargetScrollPosition(); 638 method public boolean isPreLayout(); 639 method public void onViewIgnored(android.support.v7.widget.RecyclerView.ViewHolder); 640 method public void put(int, java.lang.Object); 641 method public void remove(int); 642 method public boolean willRunPredictiveAnimations(); 643 method public boolean willRunSimpleAnimations(); 644 } 645 646 public static abstract class RecyclerView.ViewCacheExtension { 647 ctor public RecyclerView.ViewCacheExtension(); 648 method public abstract android.view.View getViewForPositionAndType(android.support.v7.widget.RecyclerView.Recycler, int, int); 649 } 650 651 public static abstract class RecyclerView.ViewHolder { 652 ctor public RecyclerView.ViewHolder(android.view.View); 653 method public final int getAdapterPosition(); 654 method public final long getItemId(); 655 method public final int getItemViewType(); 656 method public final int getLayoutPosition(); 657 method public final int getOldPosition(); 658 method public final deprecated int getPosition(); 659 method public final boolean isRecyclable(); 660 method public final void setIsRecyclable(boolean); 661 field public final android.view.View itemView; 662 } 663 664 public class RecyclerViewAccessibilityDelegate extends android.support.v4.view.AccessibilityDelegateCompat { 665 ctor public RecyclerViewAccessibilityDelegate(android.support.v7.widget.RecyclerView); 666 } 667 668 public class StaggeredGridLayoutManager extends android.support.v7.widget.RecyclerView.LayoutManager { 669 ctor public StaggeredGridLayoutManager(android.content.Context, android.util.AttributeSet, int, int); 670 ctor public StaggeredGridLayoutManager(int, int); 671 method public int[] findFirstCompletelyVisibleItemPositions(int[]); 672 method public int[] findFirstVisibleItemPositions(int[]); 673 method public int[] findLastCompletelyVisibleItemPositions(int[]); 674 method public int[] findLastVisibleItemPositions(int[]); 675 method public android.support.v7.widget.RecyclerView.LayoutParams generateDefaultLayoutParams(); 676 method public int getGapStrategy(); 677 method public int getOrientation(); 678 method public boolean getReverseLayout(); 679 method public int getSpanCount(); 680 method public void invalidateSpanAssignments(); 681 method public void scrollToPositionWithOffset(int, int); 682 method public void setGapStrategy(int); 683 method public void setOrientation(int); 684 method public void setReverseLayout(boolean); 685 method public void setSpanCount(int); 686 field public static final deprecated int GAP_HANDLING_LAZY = 1; // 0x1 687 field public static final int GAP_HANDLING_MOVE_ITEMS_BETWEEN_SPANS = 2; // 0x2 688 field public static final int GAP_HANDLING_NONE = 0; // 0x0 689 field public static final int HORIZONTAL = 0; // 0x0 690 field public static final java.lang.String TAG = "StaggeredGridLayoutManager"; 691 field public static final int VERTICAL = 1; // 0x1 692 } 693 694 public static class StaggeredGridLayoutManager.LayoutParams extends android.support.v7.widget.RecyclerView.LayoutParams { 695 ctor public StaggeredGridLayoutManager.LayoutParams(android.content.Context, android.util.AttributeSet); 696 ctor public StaggeredGridLayoutManager.LayoutParams(int, int); 697 ctor public StaggeredGridLayoutManager.LayoutParams(android.view.ViewGroup.MarginLayoutParams); 698 ctor public StaggeredGridLayoutManager.LayoutParams(android.view.ViewGroup.LayoutParams); 699 ctor public StaggeredGridLayoutManager.LayoutParams(android.support.v7.widget.RecyclerView.LayoutParams); 700 method public final int getSpanIndex(); 701 method public boolean isFullSpan(); 702 method public void setFullSpan(boolean); 703 field public static final int INVALID_SPAN_ID = -1; // 0xffffffff 704 } 705 706 } 707 708 package android.support.v7.widget.helper { 709 710 public class ItemTouchHelper extends android.support.v7.widget.RecyclerView.ItemDecoration implements android.support.v7.widget.RecyclerView.OnChildAttachStateChangeListener { 711 ctor public ItemTouchHelper(android.support.v7.widget.helper.ItemTouchHelper.Callback); 712 method public void attachToRecyclerView(android.support.v7.widget.RecyclerView); 713 method public void onChildViewAttachedToWindow(android.view.View); 714 method public void onChildViewDetachedFromWindow(android.view.View); 715 method public void startDrag(android.support.v7.widget.RecyclerView.ViewHolder); 716 method public void startSwipe(android.support.v7.widget.RecyclerView.ViewHolder); 717 field public static final int ACTION_STATE_DRAG = 2; // 0x2 718 field public static final int ACTION_STATE_IDLE = 0; // 0x0 719 field public static final int ACTION_STATE_SWIPE = 1; // 0x1 720 field public static final int ANIMATION_TYPE_DRAG = 8; // 0x8 721 field public static final int ANIMATION_TYPE_SWIPE_CANCEL = 4; // 0x4 722 field public static final int ANIMATION_TYPE_SWIPE_SUCCESS = 2; // 0x2 723 field public static final int DOWN = 2; // 0x2 724 field public static final int END = 32; // 0x20 725 field public static final int LEFT = 4; // 0x4 726 field public static final int RIGHT = 8; // 0x8 727 field public static final int START = 16; // 0x10 728 field public static final int UP = 1; // 0x1 729 } 730 731 public static abstract class ItemTouchHelper.Callback { 732 ctor public ItemTouchHelper.Callback(); 733 method public boolean canDropOver(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder, android.support.v7.widget.RecyclerView.ViewHolder); 734 method public android.support.v7.widget.RecyclerView.ViewHolder chooseDropTarget(android.support.v7.widget.RecyclerView.ViewHolder, java.util.List<android.support.v7.widget.RecyclerView.ViewHolder>, int, int); 735 method public void clearView(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder); 736 method public int convertToAbsoluteDirection(int, int); 737 method public static int convertToRelativeDirection(int, int); 738 method public long getAnimationDuration(android.support.v7.widget.RecyclerView, int, float, float); 739 method public int getBoundingBoxMargin(); 740 method public static android.support.v7.widget.helper.ItemTouchUIUtil getDefaultUIUtil(); 741 method public float getMoveThreshold(android.support.v7.widget.RecyclerView.ViewHolder); 742 method public abstract int getMovementFlags(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder); 743 method public float getSwipeThreshold(android.support.v7.widget.RecyclerView.ViewHolder); 744 method public int interpolateOutOfBoundsScroll(android.support.v7.widget.RecyclerView, int, int, int, long); 745 method public boolean isItemViewSwipeEnabled(); 746 method public boolean isLongPressDragEnabled(); 747 method public static int makeFlag(int, int); 748 method public static int makeMovementFlags(int, int); 749 method public void onChildDraw(android.graphics.Canvas, android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder, float, float, int, boolean); 750 method public void onChildDrawOver(android.graphics.Canvas, android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder, float, float, int, boolean); 751 method public abstract boolean onMove(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder, android.support.v7.widget.RecyclerView.ViewHolder); 752 method public void onMoved(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder, int, android.support.v7.widget.RecyclerView.ViewHolder, int, int, int); 753 method public void onSelectedChanged(android.support.v7.widget.RecyclerView.ViewHolder, int); 754 method public abstract void onSwiped(android.support.v7.widget.RecyclerView.ViewHolder, int); 755 field public static final int DEFAULT_DRAG_ANIMATION_DURATION = 200; // 0xc8 756 field public static final int DEFAULT_SWIPE_ANIMATION_DURATION = 250; // 0xfa 757 } 758 759 public static abstract class ItemTouchHelper.SimpleCallback extends android.support.v7.widget.helper.ItemTouchHelper.Callback { 760 ctor public ItemTouchHelper.SimpleCallback(int, int); 761 method public int getDragDirs(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder); 762 method public int getMovementFlags(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder); 763 method public int getSwipeDirs(android.support.v7.widget.RecyclerView, android.support.v7.widget.RecyclerView.ViewHolder); 764 method public void setDefaultDragDirs(int); 765 method public void setDefaultSwipeDirs(int); 766 } 767 768 public static abstract interface ItemTouchHelper.ViewDropHandler { 769 method public abstract void prepareForDrop(android.view.View, android.view.View, int, int); 770 } 771 772 public abstract interface ItemTouchUIUtil { 773 method public abstract void clearView(android.view.View); 774 method public abstract void onDraw(android.graphics.Canvas, android.support.v7.widget.RecyclerView, android.view.View, float, float, int, boolean); 775 method public abstract void onDrawOver(android.graphics.Canvas, android.support.v7.widget.RecyclerView, android.view.View, float, float, int, boolean); 776 method public abstract void onSelected(android.view.View); 777 } 778 779 } 780 781 package android.support.v7.widget.util { 782 783 public abstract class SortedListAdapterCallback extends android.support.v7.util.SortedList.Callback { 784 ctor public SortedListAdapterCallback(android.support.v7.widget.RecyclerView.Adapter); 785 method public void onChanged(int, int); 786 method public void onInserted(int, int); 787 method public void onMoved(int, int); 788 method public void onRemoved(int, int); 789 } 790 791 } 792 793