@ NonNull private AbsListView . OnScrollListener createListViewScrollListener ( ) { return new AbsListView . OnScrollListener ( ) { @ Override public void onScrollStateChanged ( final AbsListView view , final int scrollState ) { } @ Override public void onScroll ( final AbsListView view , final int firstVisibleItem , final int visibleItemCount , final int totalItemCount ) { adaptDividerVisibilities ( isListViewScrolledToTop ( view ) , isListViewScrolledToBottom ( view ) , true ) ; } } ; }
Creates and returns a listener which allows to observe the list view which is contained by the dialog is scrolled .