Skip to content

Commit

Permalink
优化细节 提供 scrollTop方法
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxikang committed Aug 30, 2016
1 parent 55fabd1 commit 22cdbcb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ public interface RecyclerviewScrollBottom {
}
public void scrollTop(){
if (recyclerView!=null&&mDispatchWebView!=null){
Log.d("TAG","滑动到顶部,进入第一层");
recyclerView.scrollToPosition(0);
mDispatchWebView.scrollTo(0, 0);
if (mDispatchWebView.isScroll()){
Expand Down

0 comments on commit 22cdbcb

Please sign in to comment.