# Pagination - RecyclerView inside NestedScrollView

**URL:** <https://discuss.kotlinlang.org/t/pagination-recyclerview-inside-nestedscrollview/18823>\
**Category:** Android\
**Created:** [August 18, 2020, 4:56pm UTC](https://discuss.kotlinlang.org/t/pagination-recyclerview-inside-nestedscrollview/18823 "2020-08-18T16:56:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayceed.deyro](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/jayceed.deyro/32/7850_2.png) [@jayceed.deyro](https://discuss.kotlinlang.org/u/jayceed.deyro)\
**Post date:** [August 18, 2020, 4:56pm UTC](https://discuss.kotlinlang.org/t/pagination-recyclerview-inside-nestedscrollview/18823/1 "2020-08-18T16:56:50Z")

</div>

I tried recyclerview inside a nestedScrollView using paging 3 library but it loads all the data, so I tried manually using the code below. I also set the isNestedScrolling = false

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/d/d9a221e834225f3b7101f8ef7c0009acb9a3ec66.png)

The “diff” is calling multiple times after 1 to 5 scroll to the bottom and sometime even I didnt touched or scroll it still calling the “diff”. Example result:

![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/2/2ca98f952554bcce17dbee5e59e4f5c153e86a94.png)

can someone help me on this?

Thank you.
