Recycler视图从JSON加载更多数据

时间:2015-11-25 10:37:05

标签: java android android-recyclerview

我正在尝试从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)
}

0 个答案:

没有答案