computeVerticalScrollOffset 썸네일형 리스트형 [Android] RecyclerView 에서 Scroll 정보 형태 intcomputeHorizontalScrollExtent()Compute the horizontal extent of the horizontal scrollbar's thumb within the horizontal range.intcomputeHorizontalScrollOffset()Compute the horizontal offset of the horizontal scrollbar's thumb within the horizontal range.intcomputeHorizontalScrollRange()Compute the horizontal range that the horizontal scrollbar represents.intcomputeVerticalScrollExtent()Compute.. 더보기 [Andorid] RecyclerView 최상단에 위치하고 있는지 확인. RecyclerView가 최상단에 위치 하고 있는지 확인하는 방법은 ScrollY로 해서는 안된다. mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); if (recyclerView.computeVerticalScrollOffset() == 0) { // is top of scroll. } else { // isn't top of scroll. } } }); 참고하세요. 더보기 이전 1 다음