【发布时间】:2018-07-10 09:10:32
【问题描述】:
我想检查smoothScrollToPosition 何时完成滚动回recyclerview 的第一项。我试过这样做,它只在 smoothScrollToPosition 仍在滚动时才有效:
recyclerView.getLayoutManager().smoothScrollToPosition(recyclerView,new RecyclerView.State(), 0);
if (!recyclerView.getLayoutManager().isSmoothScrolling()) {
Log.d(TAG, "Scrolling has ended.");
}
【问题讨论】:
标签: java android android-recyclerview