macarthor
Results
11
comments of
macarthor
有一个workaround。 在setLoadingMore(false)之后,一定在这之后,而且一定还要在recyclerview的notifyDataSetChanged之后,调用: ```new Handler.post(new runnable() { void run() { mRecyclerView.smoothScrollTo(新数据的第一个position) } });``` 如果是ScrollView,就mScrollView.smoothScrollBy(0, 想要向上滚动的px数); 之所以要在那些之后,是为了让视图稳定下来,都重新layout/resize了。 注意,一定要用post,不能直接调,否则视图会因没有重新layout/resize而不滚动。 @Aspsine 上边只是个work around,希望提供更多样式,比如header/footer的fade in/out,不只是依赖Scroller。