我正在尝试从JSON
加载更多数据,我尝试将其分配给值,但是当我使用回收器视图传递给JSON url
时,它会重写为零它
int scrollX = rootScrollView.getScrollX();
using the
recyclerview.getViewTreeObserver().addOnScrollChangedListener(new ViewTreeObserver.OnScrollChangedListener() {
@Override
public void onScrollChanged() {
Log.i("TEst","scroll:"+scrollX);(I want to increment this Value so that i can send that integer into json to load more data)
}