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