Searched refs:toPos (Results 1 - 4 of 4) sorted by relevance
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | LinearLayoutManagerPrepareForDropTest.java | 152 final int toPos = mLayoutManager.getPosition(onChild); 155 final boolean towardsHead = toPos < fromPos; 178 mTestAdapter.moveInUIThread(fromPos, toPos); 179 mTestAdapter.notifyItemMoved(fromPos, toPos); 185 assertSame(fromChild, mRecyclerView.findViewHolderForAdapterPosition(toPos).itemView);
|
H A D | ItemTouchHelperTest.java | 315 final int fromPos, toPos; field in class:ItemTouchHelperTest.MoveRecord 323 toPos = to.getAdapterPosition();
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
H A D | ItemTouchHelper.java | 1881 * @param toPos The new adapter position of the dragged item. 1890 final ViewHolder viewHolder, int fromPos, final ViewHolder target, int toPos, int x, 1903 recyclerView.scrollToPosition(toPos); 1907 recyclerView.scrollToPosition(toPos); 1914 recyclerView.scrollToPosition(toPos); 1918 recyclerView.scrollToPosition(toPos); 2147 * final int toPos = target.getAdapterPosition(); 2148 * // move item in `fromPos` to `toPos` in adapter. 1889 onMoved(final RecyclerView recyclerView, final ViewHolder viewHolder, int fromPos, final ViewHolder target, int toPos, int x, int y) argument
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | ItemTouchHelper.java | 1914 * @param toPos The new adapter position of the dragged item. 1924 int toPos, int x, int y) { 1936 recyclerView.scrollToPosition(toPos); 1940 recyclerView.scrollToPosition(toPos); 1947 recyclerView.scrollToPosition(toPos); 1951 recyclerView.scrollToPosition(toPos); 2182 * final int toPos = target.getAdapterPosition(); 2183 * // move item in `fromPos` to `toPos` in adapter. 1922 onMoved(@onNull final RecyclerView recyclerView, @NonNull final ViewHolder viewHolder, int fromPos, @NonNull final ViewHolder target, int toPos, int x, int y) argument
|
Completed in 100 milliseconds