Lines Matching refs:recyclerView
81 final RecyclerView recyclerView = new RecyclerView(getActivity());
82 recyclerView.setLayoutManager(mLayoutManager);
83 recyclerView.setAdapter(new TestAdapter(500));
84 setRecyclerView(recyclerView);
86 assertThat("Test sanity", recyclerView.getChildCount() > 0, is(true));
87 final int lastPosition = recyclerView.getAdapter().getItemCount() - 1;
89 assertThat("test sanity", recyclerView.findViewHolderForAdapterPosition(lastPosition),
94 int startHeight = recyclerView.getMeasuredHeight();
95 int startWidth = recyclerView.getMeasuredWidth();
96 Map<Integer, Rect> startPositions = capturePositions(recyclerView);
97 recyclerView.measure(
103 recyclerView.measure(
106 recyclerView.dispatchLayout();
107 Map<Integer, Rect> endPositions = capturePositions(recyclerView);
123 private Map<Integer, Rect> capturePositions(RecyclerView recyclerView) {
127 int childAdapterPosition = recyclerView.getChildAdapterPosition(view);