get scroll Y of RecyclerView or Webview
问题 I have created a activity Webview content placed in Recyclerview . I want to get the scroll Y position when I scroll webview. I tried Webview.getScrollY() , Webview.getY() , RecyclerView.getScrollY() , RecyclerView.getY() ,... but it do not work fine. I can't get current scroll Y. Is there any suggest for get scroll Y of Webview or RecyclerView ? 回答1: Use a RecyclerView.OnScrollListener for the RecyclerView and a View.OnScrollChangeListener for the webview. You'll have to keep track of the