Lines Matching refs:recyclerView
305 public boolean onInterceptTouchEvent(RecyclerView recyclerView, MotionEvent event) {
350 public void onTouchEvent(RecyclerView recyclerView, MotionEvent event) {
452 * @param recyclerView The RecyclerView instance to which you want to add this helper or
456 public void attachToRecyclerView(@Nullable RecyclerView recyclerView) {
457 if (mRecyclerView == recyclerView) {
463 mRecyclerView = recyclerView;
465 final Resources resources = recyclerView.getResources();
1339 * onMove(recyclerView, dragged, target)}.
1414 * public void clearView(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder){
1422 * public void onChildDraw(Canvas c, RecyclerView recyclerView,
1425 * getDefaultUIUtil().onDraw(c, recyclerView,
1430 * public void onChildDrawOver(Canvas c, RecyclerView recyclerView,
1433 * getDefaultUIUtil().onDrawOver(c, recyclerView,
1528 * @param recyclerView The RecyclerView to which ItemTouchHelper is attached.
1534 public abstract int getMovementFlags(RecyclerView recyclerView,
1565 final int getAbsoluteMovementFlags(RecyclerView recyclerView,
1567 final int flags = getMovementFlags(recyclerView, viewHolder);
1568 return convertToAbsoluteDirection(flags, ViewCompat.getLayoutDirection(recyclerView));
1571 private boolean hasDragFlag(RecyclerView recyclerView, ViewHolder viewHolder) {
1572 final int flags = getAbsoluteMovementFlags(recyclerView, viewHolder);
1576 private boolean hasSwipeFlag(RecyclerView recyclerView,
1578 final int flags = getAbsoluteMovementFlags(recyclerView, viewHolder);
1591 * @param recyclerView The RecyclerView to which ItemTouchHelper is attached to.
1597 public boolean canDropOver(RecyclerView recyclerView, ViewHolder current,
1613 * @param recyclerView The RecyclerView to which ItemTouchHelper is attached to.
1621 public abstract boolean onMove(RecyclerView recyclerView,
1867 private int getMaxDragScroll(RecyclerView recyclerView) {
1869 mCachedMaxScrollSpeed = recyclerView.getResources().getDimensionPixelSize(
1895 * @param recyclerView The RecyclerView controlled by the ItemTouchHelper.
1908 public void onMoved(final RecyclerView recyclerView,
1911 final RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager();
1921 if (minLeft <= recyclerView.getPaddingLeft()) {
1922 recyclerView.scrollToPosition(toPos);
1925 if (maxRight >= recyclerView.getWidth() - recyclerView.getPaddingRight()) {
1926 recyclerView.scrollToPosition(toPos);
1932 if (minTop <= recyclerView.getPaddingTop()) {
1933 recyclerView.scrollToPosition(toPos);
1936 if (maxBottom >= recyclerView.getHeight() - recyclerView.getPaddingBottom()) {
1937 recyclerView.scrollToPosition(toPos);
2001 * @param recyclerView The RecyclerView which is controlled by the ItemTouchHelper.
2004 public void clearView(RecyclerView recyclerView, ViewHolder viewHolder) {
2023 * @param recyclerView The RecyclerView to which ItemTouchHelper is attached to
2035 public void onChildDraw(Canvas c, RecyclerView recyclerView,
2038 sUICallback.onDraw(c, recyclerView, viewHolder.itemView, dX, dY, actionState,
2057 * @param recyclerView The RecyclerView to which ItemTouchHelper is attached to
2069 public void onChildDrawOver(Canvas c, RecyclerView recyclerView,
2072 sUICallback.onDrawOver(c, recyclerView, viewHolder.itemView, dX, dY, actionState,
2088 * @param recyclerView The RecyclerView to which the ItemTouchHelper is attached to.
2096 public long getAnimationDuration(RecyclerView recyclerView, int animationType,
2098 final RecyclerView.ItemAnimator itemAnimator = recyclerView.getItemAnimator();
2117 * @param recyclerView The RecyclerView instance to which ItemTouchHelper is
2128 public int interpolateOutOfBoundsScroll(RecyclerView recyclerView,
2131 final int maxScroll = getMaxDragScroll(recyclerView);
2163 * public abstract boolean onMove(RecyclerView recyclerView,
2228 * @param recyclerView The RecyclerView to which the ItemTouchHelper is attached to.
2232 public int getSwipeDirs(RecyclerView recyclerView, ViewHolder viewHolder) {
2241 * @param recyclerView The RecyclerView to which the ItemTouchHelper is attached to.
2245 public int getDragDirs(RecyclerView recyclerView, ViewHolder viewHolder) {
2250 public int getMovementFlags(RecyclerView recyclerView, ViewHolder viewHolder) {
2251 return makeMovementFlags(getDragDirs(recyclerView, viewHolder),
2252 getSwipeDirs(recyclerView, viewHolder));