car/src/androidTest/java/androidx/car/widget/PagedListViewTest.java
private void verifyItemSnappedToListTop() {
        int firstVisiblePosition =
                mRecyclerViewLayoutManager.findFirstCompletelyVisibleItemPosition();
        if (firstVisiblePosition > 1) {
            int lastInPreviousPagePosition = firstVisiblePosition - 1;
            onView(withText(itemText(lastInPreviousPagePosition)))
                    .check(doesNotExist());
        }
    }
/**
     * Checks that the first item in the list is completely shown and no part of a previous item
     * is shown.
     */
Checks that the first item in the list is completely shown and no part of a previous item
is shown.
Checks that the first item in the list is completely shown and no part of a previous item is shown .
private void verifyItemSnappedToListTop() {
        int firstVisiblePosition =
                mRecyclerViewLayoutManager.findFirstCompletelyVisibleItemPosition();
        if (firstVisiblePosition > 1) {
            int lastInPreviousPagePosition = firstVisiblePosition - 1;
            onView(withText(itemText(lastInPreviousPagePosition)))
                    .check(doesNotExist());
        }
    }
private void verifyItemSnappedToListTop ( ) { int firstVisiblePosition = mRecyclerViewLayoutManager . findFirstCompletelyVisibleItemPosition ( ) ; if ( firstVisiblePosition > 1 ) { int lastInPreviousPagePosition = firstVisiblePosition - 1 ; onView ( withText ( itemText ( lastInPreviousPagePosition ) ) ) . check ( doesNotExist ( ) ) ; } }
Checks that the first item in the list is completely shown and no part of a previous item
 is shown.
Checks that the first item in the list is completely shown and no part of a previous item is shown .