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