How to use RecyclerView.scrollToPosition() to move the position to the top of current view?
问题 The RecyclerView.scrollToPosition() is extremely strange. for example, supposed a RecyclerView named "rv" . if now item 10 is under the current RecyclerView , call rv.scrollToPosition(10) , the RecyclerView will scroll item 10 to bottom. if now item 10 is in the current RecyclerView , call rv.scrollToPosition(10) , there won't be any scrolling, nothing will be done. if now item 10 is on the top of the current RecyclerView , call rv.scrollToPosition(10) , the RecyclerView will scroll item 10